- 'a' - append after the cursor
- 'A' - append at the end of current line
:vimgrep
can help you to search through multiple files. It also tells you where you are now in the search. You can use:copen
to see all matches.:vnew
Open an empty buffer as a vertical split:%s/old/new/gc
Replace all old with new throughout file with confirmations
<c-w> h/j/k/l
Switch between split windows<c-w> v/s
Split window (vertical & horizontal)<shift-j>
Join two lines
- From shell run
$ vimdiff file1 file2
to see diff of two files