Skip to main content

VIM

Supprimer une ligne : 

dd

Couper - Coller 11 lignes : 

11dd
p

Supprimer 11 lignes : 

11dd

Faire une tabulation sur un block de texte : 

CTRL + V # On sélectionne le block voulu
SHIFT + I
TAB
Echap

Rechercher Remplacer : 

:%s/toto/tata/g

Supprimer toutes les lignes qui contient "toto" : 

:%g/toto/d