It assumes some knowledge of vim. I just compile commands that I use frequently. The chars between brackets are options.

EXIT

Save the current work and exit.

esc : wq

Exit without saving the changes.

esc : q!

Exit all the windows opened.

esc : qa

UNDO / REDO

u
ctrl r

DELETE

Delete until the next quote.

dt"

Delete the whole line.

dd

COPY AND PASTE

Copy and paste between vim windows.

d -> cut
y -> copy
P -> paste before the cursor
p -> paste after the cursor

Example: Copy from line 1 to line 20 and paste after the cursor.

:1,20y
p

Copy all. “gg” put the cursor at the very beginning, then we copy all and move the cursor until the end.

gg
"*[d,y]
GG

NAVIGATE

Between windows.

ctrl w [h,j,k,l]

Switch between active windows.

ctrl w w 

PLUGINS

I highly recommend to use a good plugin manager to easily install and remove plugins. For the time being I am using Pathogen.

Plugins I am currently using:

  1. Nerdtree