Gratis converter
Vim-opdrachten Spiekbriefje
Uitgebreid Vim-opdrachtspiekbriefje. Doorzoek meer dan 80 essentiële Vim-opdrachten met voorbeelden, beschrijvingen en kopiëren met één klik.
i
Enter Insert mode before the cursor
Voorbeeld:
iI
Enter Insert mode at the beginning of the line
Voorbeeld:
Ia
Enter Insert mode after the cursor
Voorbeeld:
aA
Enter Insert mode at the end of the line
Voorbeeld:
Ao
Open a new line below and enter Insert mode
Voorbeeld:
oO
Open a new line above and enter Insert mode
Voorbeeld:
Ov
Enter Visual mode (character selection)
Voorbeeld:
vV
Enter Visual Line mode (line selection)
Voorbeeld:
VCtrl+v
Enter Visual Block mode (column selection)
Voorbeeld:
Ctrl+v:
Enter Command-line mode
Voorbeeld:
:wEsc
Return to Normal mode from any mode
Voorbeeld:
EscR
Enter Replace mode (overwrite characters)
Voorbeeld:
Rh
Move cursor left
Voorbeeld:
5hj
Move cursor down
Voorbeeld:
10jk
Move cursor up
Voorbeeld:
10kl
Move cursor right
Voorbeeld:
5lw
Move to the start of the next word
Voorbeeld:
3wb
Move to the start of the previous word
Voorbeeld:
3be
Move to the end of the current word
Voorbeeld:
2e0
Move to the beginning of the line
Voorbeeld:
0^
Move to the first non-blank character of the line
Voorbeeld:
^$
Move to the end of the line
Voorbeeld:
$gg
Move to the first line of the file
Voorbeeld:
ggG
Move to the last line of the file
Voorbeeld:
G:N
Jump to line number N
Voorbeeld:
:42Ctrl+f
Scroll forward (down) one screen
Voorbeeld:
Ctrl+fCtrl+b
Scroll backward (up) one screen
Voorbeeld:
Ctrl+bCtrl+d
Scroll down half a screen
Voorbeeld:
Ctrl+dCtrl+u
Scroll up half a screen
Voorbeeld:
Ctrl+uH
Move cursor to the top of the screen
Voorbeeld:
HM
Move cursor to the middle of the screen
Voorbeeld:
ML
Move cursor to the bottom of the screen
Voorbeeld:
L%
Jump to matching bracket, parenthesis, or brace
Voorbeeld:
%x
Delete the character under the cursor
Voorbeeld:
xdd
Delete (cut) the current line
Voorbeeld:
dddw
Delete from cursor to the end of the word
Voorbeeld:
dwd$
Delete from cursor to the end of the line
Voorbeeld:
d$D
Delete from cursor to end of line (same as d$)
Voorbeeld:
Dyy
Yank (copy) the current line
Voorbeeld:
yyyw
Yank (copy) from cursor to end of word
Voorbeeld:
ywp
Paste after the cursor
Voorbeeld:
pP
Paste before the cursor
Voorbeeld:
Pu
Undo the last change
Voorbeeld:
uCtrl+r
Redo the last undone change
Voorbeeld:
Ctrl+rcc
Change (delete and enter insert mode) the current line
Voorbeeld:
cccw
Change from cursor to end of word
Voorbeeld:
cwc$
Change from cursor to end of line
Voorbeeld:
c$.
Repeat the last change
Voorbeeld:
.>>
Indent the current line one level to the right
Voorbeeld:
>><<
Unindent the current line one level to the left
Voorbeeld:
<<==
Auto-indent the current line
Voorbeeld:
==J
Join the current line with the line below
Voorbeeld:
J~
Toggle case of character under cursor
Voorbeeld:
~r{char}
Replace the character under the cursor with {char}
Voorbeeld:
ra/{pattern}
Search forward for pattern
Voorbeeld:
/foo?{pattern}
Search backward for pattern
Voorbeeld:
?foon
Repeat the last search in the same direction
Voorbeeld:
nN
Repeat the last search in the opposite direction
Voorbeeld:
N*
Search forward for the word under the cursor
Voorbeeld:
*#
Search backward for the word under the cursor
Voorbeeld:
#:s/old/new/g
Replace all occurrences of old with new on the current line
Voorbeeld:
:s/foo/bar/g:%s/old/new/g
Replace all occurrences of old with new in the whole file
Voorbeeld:
:%s/foo/bar/g:%s/old/new/gc
Replace all with confirmation prompts
Voorbeeld:
:%s/foo/bar/gc:noh
Clear the search highlight
Voorbeeld:
:noh:w
Save the current file
Voorbeeld:
:w:w filename
Save the current buffer as a new filename
Voorbeeld:
:w newfile.txt:q
Quit (close the window)
Voorbeeld:
:q:wq
Save and quit
Voorbeeld:
:wq:q!
Quit without saving (force quit)
Voorbeeld:
:q!:x
Save and quit (only writes if changes were made)
Voorbeeld:
:x:e filename
Open a file for editing
Voorbeeld:
:e README.md:sp
Split the window horizontally
Voorbeeld:
:sp file.txt:vsp
Split the window vertically
Voorbeeld:
:vsp file.txtCtrl+w+w
Switch focus to the next split window
Voorbeeld:
Ctrl+w wCtrl+w+h/j/k/l
Move focus to the window in the given direction
Voorbeeld:
Ctrl+w l:close
Close the current window split
Voorbeeld:
:close:only
Close all windows except the current one
Voorbeeld:
:only:bn
Switch to the next buffer
Voorbeeld:
:bn:bp
Switch to the previous buffer
Voorbeeld:
:bp:bd
Delete (close) the current buffer
Voorbeeld:
:bd:ls
List all open buffers
Voorbeeld:
:ls:b N
Switch to buffer number N
Voorbeeld:
:b 2:tabnew
Open a new tab
Voorbeeld:
:tabnew file.txt:tabn
Switch to the next tab
Voorbeeld:
:tabn:tabp
Switch to the previous tab
Voorbeeld:
:tabp:tabclose
Close the current tab
Voorbeeld:
:tabclosegt
Go to the next tab
Voorbeeld:
gtgT
Go to the previous tab
Voorbeeld:
gTq{a-z}
Start recording a macro into register {a-z}
Voorbeeld:
qqq (stop)
Stop recording the current macro
Voorbeeld:
q@{a-z}
Execute the macro stored in register {a-z}
Voorbeeld:
@q@@
Repeat the last executed macro
Voorbeeld:
@@N@{a-z}
Execute macro N times
Voorbeeld:
5@q:reg
Show the contents of all registers
Voorbeeld:
:regv then d
Select text in Visual mode then delete it
Voorbeeld:
vwdv then y
Select text in Visual mode then yank (copy) it
Voorbeeld:
vwyv then c
Select text in Visual mode then change it
Voorbeeld:
vwcv then >
Indent selected text to the right
Voorbeeld:
vip>vip
Select the current paragraph in Visual mode
Voorbeeld:
vipviw
Select the current word in Visual mode
Voorbeeld:
viwvis
Select the current sentence in Visual mode
Voorbeeld:
visV then J
Select lines in Visual Line mode then join them
Voorbeeld:
VjJ:set number
Show line numbers
Voorbeeld:
:set number:set nonumber
Hide line numbers
Voorbeeld:
:set nonumber:syntax on
Enable syntax highlighting
Voorbeeld:
:syntax on:colorscheme
Change the color scheme
Voorbeeld:
:colorscheme desert:help {topic}
Open Vim help for a topic
Voorbeeld:
:help :wm{a-z}
Set a mark at the current cursor position
Voorbeeld:
ma'{a-z}
Jump to the line of a mark
Voorbeeld:
'a`{a-z}
Jump to the exact position of a mark
Voorbeeld:
`a:set paste
Enable paste mode to avoid auto-indent issues
Voorbeeld:
:set paste:set ignorecase
Make searches case-insensitive
Voorbeeld:
:set ignorecase:set hlsearch
Highlight all search matches
Voorbeeld:
:set hlsearchga
Show the ASCII value of the character under the cursor
Voorbeeld:
gazz
Center the current line on the screen
Voorbeeld:
zzCtrl+g
Show the current file name and cursor position
Voorbeeld:
Ctrl+gGerelateerde Tools
Bekijk alle toolsGit-opdrachten Spiekbriefje
Uitgebreid Git-commando spiekbriefje. Doorzoek meer dan 80 essentiële Git-opdrachten met voorbeelden, beschrijvingen en kopiëren met één klik.
Docker-opdrachten Spiekbriefje
Uitgebreid Docker-opdrachtspiekbriefje. Doorzoek meer dan 70 essentiële Docker-opdrachten met voorbeelden, beschrijvingen en kopiëren met één klik.
Linux/Bash Commando spiekbriefje
Uitgebreid spiekbriefje voor Linux- en Bash-opdrachten. Doorzoek meer dan 80 essentiële opdrachten met voorbeelden, beschrijvingen en kopiëren met één klik.
SQL-formatter & Verfraaier
Formatteer, verfraai en ruim SQL-query's direct op in uw browser. Geen upload vereist - volledig privé en gratis.