Part VI. vi

Table of Contents

22. Introduction to vi
command mode and insert mode
start typing (a A i I o O)
replace and delete a character (r x X)
undo and repeat (u .)
cut, copy and paste a line (dd yy p P)
cut, copy and paste lines (3dd 2yy)
start and end of a line (0 or ^ and $)
join two lines (J) and more
words (w b)
save (or not) and exit (:w :q :q! )
Searching (/ ?)
replace all ( :1,$ s/foo/bar/g )
reading files (:r :r !cmd)
text buffers
multiple files
key mappings
setting options
practice: vi(m)
solution: vi(m)