Skip to content

Instantly share code, notes, and snippets.

@Ziggoto
Last active August 15, 2020 23:11
Show Gist options
  • Save Ziggoto/73126329c5c225c44c4f634b82e88e30 to your computer and use it in GitHub Desktop.
Save Ziggoto/73126329c5c225c44c4f634b82e88e30 to your computer and use it in GitHub Desktop.
Factorial command in VIM
:let fat = 10 | let aux = 1 | for i in range(1, fat) | let prevAux = aux | let aux = aux * i | put =printf('%d x %d = %d', prevAux, i, aux)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment