Skip to content

Instantly share code, notes, and snippets.

@nielsvanderbeke
Created October 7, 2013 09:45
Show Gist options
  • Save nielsvanderbeke/6865259 to your computer and use it in GitHub Desktop.
Save nielsvanderbeke/6865259 to your computer and use it in GitHub Desktop.
#Affiche le nombre de ligne
:set nu
#supprime des lignes dans un fichier
:debut,find
#Met le char # devant les 20 lignes suivantes, le ^ correspond au début de la ligne
:.,+20 s/^/#/
#reexcute la derniere commande tapée
SHIFT+.
# turn off autoindent when you paste code
:set paste
# turn on autoindent again
:set nopaste
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment