Vim Shortcuts
5 categories ยท 43 shortcuts
01
Modes
9 shortcuts- Insert mode (before cursor)i
- Insert mode (after cursor)a
- Open new line below, inserto
- Open new line above, insertO
- Return to Normal modeEsc
- Visual mode (char)v
- Visual mode (line)V
- Visual block modeCtrl+v
- Replace modeR
02
Movement
10 shortcuts- Move left/down/up/righthjkl
- Next word startw
- Previous word startb
- Next word ende
- Start of line0
- End of line$
- First linegg
- Last lineG
- Half page downCtrl+d
- Half page upCtrl+u
03
Editing
10 shortcuts- Delete char under cursorx
- Delete linedd
- Delete worddw
- Delete to end of lineD
- Yank (copy) lineyy
- Paste after cursorp
- Paste before cursorP
- Undou
- RedoCtrl+r
- Repeat last change.
04
Search
7 shortcuts- Search forward/pattern
- Search backward?pattern
- Next matchn
- Previous matchN
- Search word under cursor forward*
- Search word under cursor backward#
- Replace all:%s/old/new/g
05
Visual
7 shortcuts- Select to next wordvw
- Select to end of linev$
- Select to last lineVG
- Delete selectiond
- Yank (copy) selectiony
- Indent selection right>
- Indent selection left<