Vim is a highly configurable text editor built to enable efficient text editing.

62

Shortcuts

49

Matching

start of line
0
up
H
down
J
left
K
right
L
next word
W
previous word
B
next word (space separated)
W
previous word (space separated)
B
next end of word
E
previous end of word
G
E
end of line
$
start insert mode at cursor
I
start insert mode after cursor
A
start insert mode at the beginning of the line
I
start insert mode at the end of the line
A
add blank line below current line / move to other end of marked area
O
add blank line above current line / move to other corner of block
O
exit insert mode
delete / deletes from the cursor to the movement location
D
delete line
D
D
delete, then start insert mode / deletes from the cursor to the movement location, then starts insert mode
C
delete line, then start insert mode
C
C
copy from the cursor to the movement location
Y
indent one level
>
unindent one level
<
start visual mode
V
start linewise visual mode
V
start visual block mode
^
V
yank (copy) a line
Y
Y
paste after cursor
P
paste before cursor
P
search for pattern
/
search backward for pattern
?
repeat search in same direction
N
repeat search in opposite direction
N
undo
U
redo
^
R
move down half a page
^
D
move up half a page
^
U
go forward by paragraph
}
go backward by paragraph
{
go to the top of the page
G
G
go the bottom of the page
G
scroll down one line
^
E
scroll up one line
^
Y
repeat search forwards
;
repeat search backwards
,
join line below to the current one
J
go to the next tab
G
T
go to the previous tab
G
T
split windows horizontally
W
^
S
split windows vertically
W
^
V
switch between windows
W
^
W
quit a window
W
^
Q
go back to the previous jump location
+
repeat last command
.
inserts the last yanked text
R
^
0
reselect last selected block of text
G
V
jumps between matching `()` or `{}`
%
copy a selection to the system clipboard
"
Y
paste from the system clipboard
"
P
Don't see your shortcut? Learn how to contribute.