Vim Cheat Sheet

i = Insert mode
o = instert new line
h = left
j = Move down
k = Move up
l =right
r = replace current character
x = remove a current character
dd = delete line
dw = delete Word
wq = Write and Quit Vim
q! = Quit with out saving

To search
/searchterm and press enter and then press N to next occurrence,

Copy and Pasting in VIM

  1. Position the cursor where you want to begin cutting.
  2. Press v to select characters (or uppercase V to select whole lines, or Ctrl-v to select rectangular blocks).
  3. Move the cursor to the end of what you want to cut.
  4. Press d to cut (or y to copy).
  5. Move to where you would like to paste.
  6. Press P to paste before the cursor, or p to paste after.