Professional Documents
Culture Documents
VI Cheat Sheet
VI Cheat Sheet
2011
Nicole Cordes
VI - Cheat Sheet http://www.cps-it.de mehr wert im netz www.cps-it.de
5yy Copy 5 lines from current 5k Move 5 lines upwards :n,ms/foo/ Replace all occurences of „foo“ with „bar“
p Paste (below) j, [DOWN] Move one line downwards bar/g from line n to m
P Paste (above) 5j Move 5 lines downwards :%s/foo/ Replace all occurences of „foo“ with „bar“ in
d<MC> Delete text depending on movement w Move one word right bar/g file
command 5w Move 5 words right :%s/foo/ Replace all occurences of „foo“ with „bar“ in
D Delete text to the end of line b Move one word left bar/gc file with confirmation
I Insert at the beginning of line G Go to last line Tc Search backwards for „c“ and go one
a Insert after cursor 5G Go to line 5 character forwards