Professional Documents
Culture Documents
01 - VI Cheat Sheet PDF
01 - VI Cheat Sheet PDF
Copy/Paste Undo/Redo
y{motion} Yank {motion} u Undo
yy Yank line Ctrl-r Redo
p Paste after cursor
P Paste before cursor Save and Quit
:w Write (save)
Searching :wq Write and quit
/{pattern} Forward search for {pattern} :q Quit
?{pattern} Reverse search for {pattern} :q ! Force quit, don’t save changes
n Repeat the last search :wq! Force write and quit
N Repeat the last search in the opposite direction
http://www.LinuxTrainingAcademy.com