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:
iI
Enter Insert mode at the beginning of the line
Beispiel:
Ia
Enter Insert mode after the cursor
Beispiel:
aA
Enter Insert mode at the end of the line
Beispiel:
Ao
Open a new line below and enter Insert mode
Beispiel:
oO
Open a new line above and enter Insert mode
Beispiel:
Ov
Enter Visual mode (character selection)
Beispiel:
vV
Enter Visual Line mode (line selection)
Beispiel:
VCtrl+v
Enter Visual Block mode (column selection)
Beispiel:
Ctrl+v:
Enter Command-line mode
Beispiel:
:wEsc
Return to Normal mode from any mode
Beispiel:
EscR
Enter Replace mode (overwrite characters)
Beispiel:
Rh
Move cursor left
Beispiel:
5hj
Move cursor down
Beispiel:
10jk
Move cursor up
Beispiel:
10kl
Move cursor right
Beispiel:
5lw
Move to the start of the next word
Beispiel:
3wb
Move to the start of the previous word
Beispiel:
3be
Move to the end of the current word
Beispiel:
2e0
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:
ggG
Move to the last line of the file
Beispiel:
G:N
Jump to line number N
Beispiel:
:42Ctrl+f
Scroll forward (down) one screen
Beispiel:
Ctrl+fCtrl+b
Scroll backward (up) one screen
Beispiel:
Ctrl+bCtrl+d
Scroll down half a screen
Beispiel:
Ctrl+dCtrl+u
Scroll up half a screen
Beispiel:
Ctrl+uH
Move cursor to the top of the screen
Beispiel:
HM
Move cursor to the middle of the screen
Beispiel:
ML
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:
xdd
Delete (cut) the current line
Beispiel:
dddw
Delete from cursor to the end of the word
Beispiel:
dwd$
Delete from cursor to the end of the line
Beispiel:
d$D
Delete from cursor to end of line (same as d$)
Beispiel:
Dyy
Yank (copy) the current line
Beispiel:
yyyw
Yank (copy) from cursor to end of word
Beispiel:
ywp
Paste after the cursor
Beispiel:
pP
Paste before the cursor
Beispiel:
Pu
Undo the last change
Beispiel:
uCtrl+r
Redo the last undone change
Beispiel:
Ctrl+rcc
Change (delete and enter insert mode) the current line
Beispiel:
cccw
Change from cursor to end of word
Beispiel:
cwc$
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:
?foon
Repeat the last search in the same direction
Beispiel:
nN
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.txtCtrl+w+w
Switch focus to the next split window
Beispiel:
Ctrl+w wCtrl+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:
:tabclosegt
Go to the next tab
Beispiel:
gtgT
Go to the previous tab
Beispiel:
gTq{a-z}
Start recording a macro into register {a-z}
Beispiel:
qqq (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:
:regv then d
Select text in Visual mode then delete it
Beispiel:
vwdv then y
Select text in Visual mode then yank (copy) it
Beispiel:
vwyv then c
Select text in Visual mode then change it
Beispiel:
vwcv then >
Indent selected text to the right
Beispiel:
vip>vip
Select the current paragraph in Visual mode
Beispiel:
vipviw
Select the current word in Visual mode
Beispiel:
viwvis
Select the current sentence in Visual mode
Beispiel:
visV 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 :wm{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 hlsearchga
Show the ASCII value of the character under the cursor
Beispiel:
gazz
Center the current line on the screen
Beispiel:
zzCtrl+g
Show the current file name and cursor position
Beispiel:
Ctrl+gÄhnliche Tools
Alle Tools ansehenGit-Befehle Spickzettel
Umfassender Git-Befehls-Spickzettel. Durchsuchen Sie über 80 wichtige Git-Befehle mit Beispielen, Beschreibungen und Kopien mit einem Klick.
Docker-Befehle Spickzettel
Umfassender Spickzettel für Docker-Befehle. Durchsuchen Sie mehr als 70 wichtige Docker-Befehle mit Beispielen, Beschreibungen und Kopien mit einem Klick.
Linux / Bash Befehls-Spickzettel
Umfassender Spickzettel für Linux- und Bash-Befehle. Durchsuchen Sie über 80 wichtige Befehle mit Beispielen, Beschreibungen und Kopien mit einem Klick.
SQL-Formatierer & Verschönerer
Formatieren, verschönern und bereinigen Sie SQL-Abfragen sofort in Ihrem Browser. Kein Upload erforderlich — vollständig privat und kostenlos.