Hotkeys and shortcuts for Vim

(Total 55)

Esc
General
Gets out of the current mode into the “command mode”. All keys are bound of commands
I
Insert text
Insert text before the cursor
:
General
“Last-line mode”. In this mode, Vim expects you to enter a command such as to save the document
H
Navigation keys
Move the cursor one character to the left
J
Navigation keys
Move the cursor down one line
Ctrl + J
Navigation keys
Move the cursor down one line
K
Navigation keys
Move the cursor up one line
Ctrl + P
Navigation keys
Move the cursor up one line
L
Navigation keys
Move the cursor one character to the right
0
Navigation keys
Move the cursor to the beginning of the line
$
Navigation keys
Move the cursor to the end of the line
^
Navigation keys
Move the cursor to the first non-empty character of the line
W
Navigation keys
Move forward one word (delimited by a white space)
5 then W
Navigation keys
Move forward five words
B
Navigation keys
Move backward one word (delimited by a white space)
5 then B
Navigation keys
Move backward five words
G
Navigation keys
Move to the end of the file
G then G
Navigation keys
Move to the beginning of the file
(
Navigate around the document
Jump to the previous sentence
)
Navigate around the document
Jump to the next sentence
{
Navigate around the document
Jump to the previous paragraph
}
Navigate around the document
Jump to the next paragraph
[ then [
Navigate around the document
Jump to the previous section
] then ]
Navigate around the document
Jump to the next section
[ then ]
Navigate around the document
Jump to the end of the previous section
] then [
Navigate around the document
Jump to the end of the next section
A
Insert text
Insert text at the end of the line
O
Insert text
Begin a new line above the cursor
X
Delete text
delete character at cursor
D then W
Delete text
Delete a word
D then 0
Delete text
Delete to the beginning of a line
D then $
Delete text
Delete to the end of a line
D then )
Delete text
Delete to the end of sentence
D then G then G
Delete text
Delete to the beginning of the file
D then G
Delete text
Delete to the end of the file
D then D
Delete text
Delete line
3 then D then D
Delete text
Delete three lines
R
Simple replace text
Replace characters instead of inserting them
Y then Y
Copy/Paste text
Copy current line into storage buffer
P
Copy/Paste text
Paste storage buffer before current line
U
Undo/Redo operation
undo the last operation
Ctrl + R
Undo/Redo operation
Redo the last undo
~
Modify selected text
Switch case
D
Modify selected text
Delete a word
C
Modify selected text
Change
Y
Modify selected text
Yank
>
Modify selected text
Shift right
<
Modify selected text
Shift left
!
Modify selected text
Filter through an external command
: then Q
Save and quit
Quits Vim but fails when file has been changed
: then W
Save and quit
Save the file
: then W then Q
Save and quit
Save the file and quit Vim
: then Q then !
Save and quit
Quit Vim without saving the changes to the file
Z then Z
Save and quit
Write file, if modified, and quit Vim
Z then Q
Save and quit
Same as :q! Quits Vim without writing changes