Vim 快捷键
The most basic ones
- Esc: return to mode “Normal”
- i: go into mode “Insert”
- : - go into mode “Command”, you can use wq! to save and quit or just q! to force quit
Common use ones
- h: go left for one character
- l: go right for one character
- j: go down for one line
- k: go up for one line
- b: go left for one word
- w: go right for one word
- 0: go to the beginning of this line
- $: go to the end of this line
- gg: go to the beginning of this file
- G: go to the end of this file
- o: begin a new line
Insert
- a: insert behind the cursor
- i: insert before the cursor
- A: insert at the end of this line
Choose
- v: go into the Mode “Visual”
- b,w,j,k: to choose word or line
Delete
- x: delete the character on the cursor