Mode Switching 10
i
Insert Mode
Enter insert mode before cursor
a
Append Mode
Enter insert mode after cursor
I
Insert at Line Start
Insert at beginning of line
A
Append at Line End
Insert at end of line
o
Open Line Below
Open new line below and enter insert mode
O
Open Line Above
Open new line above and enter insert mode
Esc
Normal Mode
Return to normal mode
v
Visual Mode
Enter visual mode
V
Visual Line Mode
Enter visual line mode
Ctrl+v
Visual Block Mode
Enter visual block mode
Movement 14
h
Left
Move cursor left
j
Down
Move cursor down
k
Up
Move cursor up
l
Right
Move cursor right
w
Next Word
Jump to start of next word
b
Previous Word
Jump to start of previous word
e
End of Word
Jump to end of word
0
Line Start
Move to start of line
^
First Non-blank
Move to first non-blank character
$
Line End
Move to end of line
gg
File Start
Go to first line
G
File End
Go to last line
Ctrl+f
Page Down
Scroll page down
Ctrl+b
Page Up
Scroll page up
Editing 13
x
Delete Char
Delete character under cursor
dd
Delete Line
Delete current line
dw
Delete Word
Delete word
D
Delete to End
Delete from cursor to end of line
yy
Yank Line
Copy current line
yw
Yank Word
Copy word
p
Paste After
Paste after cursor
P
Paste Before
Paste before cursor
u
Undo
Undo last change
Ctrl+r
Redo
Redo change
r
Replace Char
Replace single character
R
Replace Mode
Enter replace mode
J
Join Lines
Join current line with next
Search 6
/
Search Forward
Search forward
?
Search Backward
Search backward
n
Next Match
Go to next search match
N
Previous Match
Go to previous search match
*
Search Word
Search for word under cursor
#
Search Word Backward
Search word backward
File Operations 7
:w
Save
Save file
:q
Quit
Quit Vim
:wq
Save & Quit
Save and quit
:q!
Force Quit
Quit without saving
:e filename
Edit File
Open file for editing
:sp
Split Horizontal
Split window horizontally
:vsp
Split Vertical
Split window vertically
Advanced 7
.
Repeat
Repeat last command
~
Toggle Case
Toggle case of character
ci"
Change in Quotes
Change text inside quotes
di"
Delete in Quotes
Delete text inside quotes
qa
Record Macro
Record macro to register a
q
Stop Recording
Stop recording macro
@a
Run Macro
Execute macro from register a
No shortcuts found