About the vim cheat sheet

rw-book-cover

Metadata

Highlights

nvim


gD - move to global declaration (View Highlight)


Ctrl + h - delete the character before the cursor during insert mode (View Highlight)


Ctrl + j - add a line break at the cursor position during insert mode (View Highlight)


Ctrl + t - indent (move right) line one shiftwidth during insert mode (View Highlight)


Ctrl + d - de-indent (move left) line one shiftwidth during insert mode (View Highlight)


R - replace more than one character, until ESC is pressed. (View Highlight)


cc - change (replace) entire line (View Highlight)


xp - transpose two letters (delete and paste) (View Highlight)


o - move to other end of marked area (View Highlight)


• qa - record macro a • q - stop recording macro • @a - run macro a • @@ - rerun last run macro (View Highlight)


:%s/old/new/g - replace all old with new throughout file (View Highlight)


:%s/old/new/gc - replace all old with new throughout file with confirmations (View Highlight)