Contents

vim

move

  1. gg/G: jump to top of content
  2. 0/$: the begin of the line
  3. 5gg: jump to line 5

edit

  1. i/a: insert befor(after)current cursor position
  2. o,O: insert below(above) current cursor
  3. r/R: replace current character/ repace until esc
  4. s/S: delte current character/line and start insert
  5. [5]dd
  6. dG: delte from current line to last
  7. :1,4d,delet
  8. D: delte to the end of line

undo, redo

undo: u redo: ctrl + r

mode

  1. insert: i
  2. normal : excute command; switch into other mode;
    1. p(P): paste the character after(before) current cursor;
  3. visual: select characters;
    1. v: select mutiple characters
    2. V: select mutiple lines;