Skip to content
si:vim

Vim Shortcuts

Editors

By EZ4Code Team

Modes

9
ShortcutDescriptionPlatform
iInsert mode (before cursor)all
aInsert mode (after cursor)all
oOpen new line below, insertall
OOpen new line above, insertall
EscReturn to Normal modeall
vVisual mode (char)all
VVisual mode (line)all
Ctrl+vVisual block modeall
RReplace modeall

Movement

10
ShortcutDescriptionPlatform
h j k lMove left/down/up/rightall
wNext word startall
bPrevious word startall
eNext word endall
0Start of lineall
$End of lineall
ggFirst lineall
GLast lineall
Ctrl+dHalf page downall
Ctrl+uHalf page upall

Editing

10
ShortcutDescriptionPlatform
xDelete char under cursorall
ddDelete lineall
dwDelete wordall
DDelete to end of lineall
yyYank (copy) lineall
pPaste after cursorall
PPaste before cursorall
uUndoall
Ctrl+rRedoall
.Repeat last changeall

Search

7
ShortcutDescriptionPlatform
/patternSearch forwardall
?patternSearch backwardall
nNext matchall
NPrevious matchall
*Search word under cursor forwardall
#Search word under cursor backwardall
:%s/old/new/gReplace allall

Visual

7
ShortcutDescriptionPlatform
vwSelect to next wordall
v$Select to end of lineall
VGSelect to last lineall
dDelete selectionall
yYank (copy) selectionall
>Indent selection rightall
<Indent selection leftall

More Shortcuts