vi <file>
Movement:
h- Leftj- Downk- Upl- Right:n- go to line:$- Go to the end of fileMaking Changes
i- Insert hereI- Insert at the beginning of linea- Append hereA- Append from the beginningx- deletedw- delete worddd- delete lineD- delete from here onr- replace charcw- replace wordcc- replace current lineC/c$- replace from here on~- swap upper/lower casingyy- copy current linep- pasteu- undo<Ctrl>-R- redo
Searching
/<pattern>- Forward search?<pattern>- Reverse searchn- next itemN- previous item
Repeating Actions
<n><action><insert>- Repeat Action (insert opt) n timesex: Write A 45 times ==
45iA<esc>Saving & Breaking Out:
<esc>- exit current mode:w- write:q!- Leave & don't save a thing!:wq!- Write & Run!
