Vim Tutorial
Normal Mode - Navigate the structure of the file
Move Cursor
h
/j
/k
/l
- Move left/up/down/rightH
/M
/L
- Move to the top/middle/bottom of the windoww
/e
- Move to the beginning/end of the next wordb
- Move to the beggining of the previous word0
/$
- Move to the beginning/end of a line(
/)
- Move to the beggining of the next/previous line{
/}
- Move to the beginning of the next/previous paragraph^E
/^Y
- Scroll the window down/up^F
/^B
- Scroll down/up one pagegg
/G
- Go to top/bottom of the file
Copy/Paste/Delete
y
- Copyp
- Pasteyy
/yw
/y$
- Copy a line/word/from the cursor to the end of the file#yy
- Copy # linesx
- Delete a single characterd
/dd
/dw
- Delete highlight text/a line/a wordD
/d0
- Delete from the cursor to the beginning/end of the linedgg
/dG
- Delete from the cursor to the beginning/end of the file
Actions
u
/u#
- Undo the last/last # actions.
- Repeate the last action
Options
a
- alli
- int
- tillf
- find forwardF
- find backard
Conbined Commands
diw
- Delete inside the wordcaw
- Change all the worddi)
- Delete inside the parenthesesdt;
- Delete until the semicolon