Vim

Vim Shortcuts

Vim and Neovim Tastenkombinationen — modal editing, navigation and commands. v9.x

Shortcuts
6
Kategorien

Cheat-Sheet-Leitfaden

Vim Shortcuts, die du zuerst lernen solltest

Diese Seite sammelt 60 durchsuchbare Tastenkombinationen fuer Vim in 6 Kategorien. Beginne mit den wichtigsten Kategorien und drucke das Cheat Sheet, wenn du es griffbereit haben moechtest.

  • Wechsle die OS-Tabs fuer Windows-, macOS- oder Linux-Shortcuts.
  • Mit / springst du direkt zur Suche.
  • Nutze den Vergleichsmodus beim Wechsel zwischen Systemen.
  • Drucke oder speichere die Seite als kompaktes PDF-Cheat-Sheet.
Modes 11 shortcuts
Enter Normal mode
Esc
Enter Insert mode
i
Insert at end of line
A
Insert on new line below
o
Insert on new line above
O
Enter Visual mode
v
Enter Visual Line mode
V
Enter Visual Block mode
Ctrl+V
Enter Command-line mode
:
Replace single character
r
Replace mode (overwrite)
R
Navigation 12 shortcuts
Move left/down/up/right
h/j/k/l
Next / previous word
w/b
End of word
e
Start of line (non-blank)
^
End of line
$
First line of file
gg
Last line of file
G
Gehe zu Zeile N
:NorNgg
Half page down/up
Ctrl+D/Ctrl+U
Jump to matching bracket
%
Jump to next/prev occurrence of char
f{char}/F{char}
Center view on cursor
zz
Bearbeitung 15 shortcuts
Loeschen character
x
Loeschen line
dd
Loeschen word
dw
Loeschen to end of line
D
Yank (copy) line
yy
Yank word
yw
Einfuegen after / before cursor
p/P
Change word
cw
Change to end of line
C
Change entire line
cc
Rueckgaengig
u
Wiederholen
Ctrl+R
Repeat last change
.
Indent / unindent line
>>/<<
Auto-indent selection
=G(fromtop)
Search & Replace 8 shortcuts
Search forward
/{pattern}
Search backward
?{pattern}
Next / previous match
n/N
Search word under cursor
*/#
Replace in line
:s/old/new/
Replace all in file
:%s/old/new/g
Replace with confirmation
:%s/old/new/gc
Clear search highlight
:noh
Datei & Buffers 9 shortcuts
Datei speichern
:w
Save and quit
:wq
Quit without saving
:q!
Datei oeffnen
:e{file}
List buffers
:ls
Next / previous buffer
:bn/:bp
Split horizontally
:sp
Split vertically
:vsp
Navigate splits
Ctrl+Whjkl
Macros 5 shortcuts
Record macro into register
q{letter}
Stop recording
q
Play macro
@{letter}
Repeat last macro
@@
Run macro N times
N@{letter}

Haeufige Fragen

What is the fastest way to find Vim shortcuts on this page?

Use the search box or press /, then type an action such as enter normal mode.

Can I print this Vim shortcut cheat sheet?

Yes. Use the Print / PDF button or your browser print command to save a compact cheat sheet.

Does this page include Windows and Mac shortcuts for Vim?

Yes. Use the OS tabs to switch between Windows and macOS shortcuts. For example, Enter Normal mode is Esc on Windows and Esc on macOS where available.

Advertisement
Keine Shortcuts passen zur Suche.