Kostenloser Konverter

Vim-Befehle Spickzettel

Umfassender Vim-Befehls-Spickzettel. Durchsuchen Sie über 80 wichtige Vim-Befehle mit Beispielen, Beschreibungen und Kopien mit einem Klick.

i
Enter Insert mode before the cursor
Beispiel:i
I
Enter Insert mode at the beginning of the line
Beispiel:I
a
Enter Insert mode after the cursor
Beispiel:a
A
Enter Insert mode at the end of the line
Beispiel:A
o
Open a new line below and enter Insert mode
Beispiel:o
O
Open a new line above and enter Insert mode
Beispiel:O
v
Enter Visual mode (character selection)
Beispiel:v
V
Enter Visual Line mode (line selection)
Beispiel:V
Ctrl+v
Enter Visual Block mode (column selection)
Beispiel:Ctrl+v
:
Enter Command-line mode
Beispiel::w
Esc
Return to Normal mode from any mode
Beispiel:Esc
R
Enter Replace mode (overwrite characters)
Beispiel:R
h
Move cursor left
Beispiel:5h
j
Move cursor down
Beispiel:10j
k
Move cursor up
Beispiel:10k
l
Move cursor right
Beispiel:5l
w
Move to the start of the next word
Beispiel:3w
b
Move to the start of the previous word
Beispiel:3b
e
Move to the end of the current word
Beispiel:2e
0
Move to the beginning of the line
Beispiel:0
^
Move to the first non-blank character of the line
Beispiel:^
$
Move to the end of the line
Beispiel:$
gg
Move to the first line of the file
Beispiel:gg
G
Move to the last line of the file
Beispiel:G
:N
Jump to line number N
Beispiel::42
Ctrl+f
Scroll forward (down) one screen
Beispiel:Ctrl+f
Ctrl+b
Scroll backward (up) one screen
Beispiel:Ctrl+b
Ctrl+d
Scroll down half a screen
Beispiel:Ctrl+d
Ctrl+u
Scroll up half a screen
Beispiel:Ctrl+u
H
Move cursor to the top of the screen
Beispiel:H
M
Move cursor to the middle of the screen
Beispiel:M
L
Move cursor to the bottom of the screen
Beispiel:L
%
Jump to matching bracket, parenthesis, or brace
Beispiel:%
x
Delete the character under the cursor
Beispiel:x
dd
Delete (cut) the current line
Beispiel:dd
dw
Delete from cursor to the end of the word
Beispiel:dw
d$
Delete from cursor to the end of the line
Beispiel:d$
D
Delete from cursor to end of line (same as d$)
Beispiel:D
yy
Yank (copy) the current line
Beispiel:yy
yw
Yank (copy) from cursor to end of word
Beispiel:yw
p
Paste after the cursor
Beispiel:p
P
Paste before the cursor
Beispiel:P
u
Undo the last change
Beispiel:u
Ctrl+r
Redo the last undone change
Beispiel:Ctrl+r
cc
Change (delete and enter insert mode) the current line
Beispiel:cc
cw
Change from cursor to end of word
Beispiel:cw
c$
Change from cursor to end of line
Beispiel:c$
.
Repeat the last change
Beispiel:.
>>
Indent the current line one level to the right
Beispiel:>>
<<
Unindent the current line one level to the left
Beispiel:<<
==
Auto-indent the current line
Beispiel:==
J
Join the current line with the line below
Beispiel:J
~
Toggle case of character under cursor
Beispiel:~
r{char}
Replace the character under the cursor with {char}
Beispiel:ra
/{pattern}
Search forward for pattern
Beispiel:/foo
?{pattern}
Search backward for pattern
Beispiel:?foo
n
Repeat the last search in the same direction
Beispiel:n
N
Repeat the last search in the opposite direction
Beispiel:N
*
Search forward for the word under the cursor
Beispiel:*
#
Search backward for the word under the cursor
Beispiel:#
:s/old/new/g
Replace all occurrences of old with new on the current line
Beispiel::s/foo/bar/g
:%s/old/new/g
Replace all occurrences of old with new in the whole file
Beispiel::%s/foo/bar/g
:%s/old/new/gc
Replace all with confirmation prompts
Beispiel::%s/foo/bar/gc
:noh
Clear the search highlight
Beispiel::noh
:w
Save the current file
Beispiel::w
:w filename
Save the current buffer as a new filename
Beispiel::w newfile.txt
:q
Quit (close the window)
Beispiel::q
:wq
Save and quit
Beispiel::wq
:q!
Quit without saving (force quit)
Beispiel::q!
:x
Save and quit (only writes if changes were made)
Beispiel::x
:e filename
Open a file for editing
Beispiel::e README.md
:sp
Split the window horizontally
Beispiel::sp file.txt
:vsp
Split the window vertically
Beispiel::vsp file.txt
Ctrl+w+w
Switch focus to the next split window
Beispiel:Ctrl+w w
Ctrl+w+h/j/k/l
Move focus to the window in the given direction
Beispiel:Ctrl+w l
:close
Close the current window split
Beispiel::close
:only
Close all windows except the current one
Beispiel::only
:bn
Switch to the next buffer
Beispiel::bn
:bp
Switch to the previous buffer
Beispiel::bp
:bd
Delete (close) the current buffer
Beispiel::bd
:ls
List all open buffers
Beispiel::ls
:b N
Switch to buffer number N
Beispiel::b 2
:tabnew
Open a new tab
Beispiel::tabnew file.txt
:tabn
Switch to the next tab
Beispiel::tabn
:tabp
Switch to the previous tab
Beispiel::tabp
:tabclose
Close the current tab
Beispiel::tabclose
gt
Go to the next tab
Beispiel:gt
gT
Go to the previous tab
Beispiel:gT
q{a-z}
Start recording a macro into register {a-z}
Beispiel:qq
q (stop)
Stop recording the current macro
Beispiel:q
@{a-z}
Execute the macro stored in register {a-z}
Beispiel:@q
@@
Repeat the last executed macro
Beispiel:@@
N@{a-z}
Execute macro N times
Beispiel:5@q
:reg
Show the contents of all registers
Beispiel::reg
v then d
Select text in Visual mode then delete it
Beispiel:vwd
v then y
Select text in Visual mode then yank (copy) it
Beispiel:vwy
v then c
Select text in Visual mode then change it
Beispiel:vwc
v then >
Indent selected text to the right
Beispiel:vip>
vip
Select the current paragraph in Visual mode
Beispiel:vip
viw
Select the current word in Visual mode
Beispiel:viw
vis
Select the current sentence in Visual mode
Beispiel:vis
V then J
Select lines in Visual Line mode then join them
Beispiel:VjJ
:set number
Show line numbers
Beispiel::set number
:set nonumber
Hide line numbers
Beispiel::set nonumber
:syntax on
Enable syntax highlighting
Beispiel::syntax on
:colorscheme
Change the color scheme
Beispiel::colorscheme desert
:help {topic}
Open Vim help for a topic
Beispiel::help :w
m{a-z}
Set a mark at the current cursor position
Beispiel:ma
'{a-z}
Jump to the line of a mark
Beispiel:'a
`{a-z}
Jump to the exact position of a mark
Beispiel:`a
:set paste
Enable paste mode to avoid auto-indent issues
Beispiel::set paste
:set ignorecase
Make searches case-insensitive
Beispiel::set ignorecase
:set hlsearch
Highlight all search matches
Beispiel::set hlsearch
ga
Show the ASCII value of the character under the cursor
Beispiel:ga
zz
Center the current line on the screen
Beispiel:zz
Ctrl+g
Show the current file name and cursor position
Beispiel:Ctrl+g

Über dieses Tool

Eine umfassende Kurzanleitung für VIM-Befehle. Durchsuchen Sie häufig verwendete Befehle, Syntax und Beispiele, geordnet nach Kategorien. Durchsuchbar und mobilfreundlich – setzen Sie ein Lesezeichen für diese Seite, um sofort darauf zuzugreifen, wenn Sie eine schnelle Erinnerung benötigen.

So verwenden Sie es

  1. Durchsuchen Sie die kategorisierten Referenzabschnitte.
  2. Verwenden Sie die Suchleiste, um bestimmte Befehle oder Syntaxen zu finden.
  3. Klicken Sie auf einen Eintrag, um Anwendungsbeispiele und Erklärungen anzuzeigen.
  4. Kopieren Sie Befehle direkt zur Verwendung in Ihrem Terminal oder Editor.

Häufig gestellte Fragen

Ist diese Referenz aktuell?
Die Referenz deckt weit verbreitete Befehle und Syntax ab, die in allen Versionen stabil sind. Informationen zu den neuesten Ergänzungen oder versionspezifischen Funktionen finden Sie in der offiziellen Dokumentation.
Kann ich das offline nutzen?
Nach dem Laden funktioniert die Seite ohne Internetverbindung. Setzen Sie ein Lesezeichen für den schnellen Zugriff – alle Inhalte werden im Browser ohne weitere Netzwerkanfragen gerendert.
Ist das umfassend oder nur die Grundlagen?
Es deckt die am häufigsten verwendeten Befehle und Muster ab, die 90 % der alltäglichen Aufgaben erledigen. Informationen zu Nischen- oder erweiterten Funktionen finden Sie in der offiziellen Dokumentation.
Kann ich Ergänzungen vorschlagen?
Wir aktualisieren regelmäßig unsere Referenzen. Wenn Ihnen fehlende Befehle auffallen oder Sie Vorschläge haben, teilen Sie uns dies über unsere Kontaktseite mit.