Zdarma převodník
Příkazy Vim Cheat Sheet
Komplexní cheat pro příkaz Vim. Prohledávejte 80+ základních příkazů Vim s příklady, popisy a kopírováním na jedno kliknutí.
i
Enter Insert mode before the cursor
Příklad:
iI
Enter Insert mode at the beginning of the line
Příklad:
Ia
Enter Insert mode after the cursor
Příklad:
aA
Enter Insert mode at the end of the line
Příklad:
Ao
Open a new line below and enter Insert mode
Příklad:
oO
Open a new line above and enter Insert mode
Příklad:
Ov
Enter Visual mode (character selection)
Příklad:
vV
Enter Visual Line mode (line selection)
Příklad:
VCtrl+v
Enter Visual Block mode (column selection)
Příklad:
Ctrl+v:
Enter Command-line mode
Příklad:
:wEsc
Return to Normal mode from any mode
Příklad:
EscR
Enter Replace mode (overwrite characters)
Příklad:
Rh
Move cursor left
Příklad:
5hj
Move cursor down
Příklad:
10jk
Move cursor up
Příklad:
10kl
Move cursor right
Příklad:
5lw
Move to the start of the next word
Příklad:
3wb
Move to the start of the previous word
Příklad:
3be
Move to the end of the current word
Příklad:
2e0
Move to the beginning of the line
Příklad:
0^
Move to the first non-blank character of the line
Příklad:
^$
Move to the end of the line
Příklad:
$gg
Move to the first line of the file
Příklad:
ggG
Move to the last line of the file
Příklad:
G:N
Jump to line number N
Příklad:
:42Ctrl+f
Scroll forward (down) one screen
Příklad:
Ctrl+fCtrl+b
Scroll backward (up) one screen
Příklad:
Ctrl+bCtrl+d
Scroll down half a screen
Příklad:
Ctrl+dCtrl+u
Scroll up half a screen
Příklad:
Ctrl+uH
Move cursor to the top of the screen
Příklad:
HM
Move cursor to the middle of the screen
Příklad:
ML
Move cursor to the bottom of the screen
Příklad:
L%
Jump to matching bracket, parenthesis, or brace
Příklad:
%x
Delete the character under the cursor
Příklad:
xdd
Delete (cut) the current line
Příklad:
dddw
Delete from cursor to the end of the word
Příklad:
dwd$
Delete from cursor to the end of the line
Příklad:
d$D
Delete from cursor to end of line (same as d$)
Příklad:
Dyy
Yank (copy) the current line
Příklad:
yyyw
Yank (copy) from cursor to end of word
Příklad:
ywp
Paste after the cursor
Příklad:
pP
Paste before the cursor
Příklad:
Pu
Undo the last change
Příklad:
uCtrl+r
Redo the last undone change
Příklad:
Ctrl+rcc
Change (delete and enter insert mode) the current line
Příklad:
cccw
Change from cursor to end of word
Příklad:
cwc$
Change from cursor to end of line
Příklad:
c$.
Repeat the last change
Příklad:
.>>
Indent the current line one level to the right
Příklad:
>><<
Unindent the current line one level to the left
Příklad:
<<==
Auto-indent the current line
Příklad:
==J
Join the current line with the line below
Příklad:
J~
Toggle case of character under cursor
Příklad:
~r{char}
Replace the character under the cursor with {char}
Příklad:
ra/{pattern}
Search forward for pattern
Příklad:
/foo?{pattern}
Search backward for pattern
Příklad:
?foon
Repeat the last search in the same direction
Příklad:
nN
Repeat the last search in the opposite direction
Příklad:
N*
Search forward for the word under the cursor
Příklad:
*#
Search backward for the word under the cursor
Příklad:
#:s/old/new/g
Replace all occurrences of old with new on the current line
Příklad:
:s/foo/bar/g:%s/old/new/g
Replace all occurrences of old with new in the whole file
Příklad:
:%s/foo/bar/g:%s/old/new/gc
Replace all with confirmation prompts
Příklad:
:%s/foo/bar/gc:noh
Clear the search highlight
Příklad:
:noh:w
Save the current file
Příklad:
:w:w filename
Save the current buffer as a new filename
Příklad:
:w newfile.txt:q
Quit (close the window)
Příklad:
:q:wq
Save and quit
Příklad:
:wq:q!
Quit without saving (force quit)
Příklad:
:q!:x
Save and quit (only writes if changes were made)
Příklad:
:x:e filename
Open a file for editing
Příklad:
:e README.md:sp
Split the window horizontally
Příklad:
:sp file.txt:vsp
Split the window vertically
Příklad:
:vsp file.txtCtrl+w+w
Switch focus to the next split window
Příklad:
Ctrl+w wCtrl+w+h/j/k/l
Move focus to the window in the given direction
Příklad:
Ctrl+w l:close
Close the current window split
Příklad:
:close:only
Close all windows except the current one
Příklad:
:only:bn
Switch to the next buffer
Příklad:
:bn:bp
Switch to the previous buffer
Příklad:
:bp:bd
Delete (close) the current buffer
Příklad:
:bd:ls
List all open buffers
Příklad:
:ls:b N
Switch to buffer number N
Příklad:
:b 2:tabnew
Open a new tab
Příklad:
:tabnew file.txt:tabn
Switch to the next tab
Příklad:
:tabn:tabp
Switch to the previous tab
Příklad:
:tabp:tabclose
Close the current tab
Příklad:
:tabclosegt
Go to the next tab
Příklad:
gtgT
Go to the previous tab
Příklad:
gTq{a-z}
Start recording a macro into register {a-z}
Příklad:
qqq (stop)
Stop recording the current macro
Příklad:
q@{a-z}
Execute the macro stored in register {a-z}
Příklad:
@q@@
Repeat the last executed macro
Příklad:
@@N@{a-z}
Execute macro N times
Příklad:
5@q:reg
Show the contents of all registers
Příklad:
:regv then d
Select text in Visual mode then delete it
Příklad:
vwdv then y
Select text in Visual mode then yank (copy) it
Příklad:
vwyv then c
Select text in Visual mode then change it
Příklad:
vwcv then >
Indent selected text to the right
Příklad:
vip>vip
Select the current paragraph in Visual mode
Příklad:
vipviw
Select the current word in Visual mode
Příklad:
viwvis
Select the current sentence in Visual mode
Příklad:
visV then J
Select lines in Visual Line mode then join them
Příklad:
VjJ:set number
Show line numbers
Příklad:
:set number:set nonumber
Hide line numbers
Příklad:
:set nonumber:syntax on
Enable syntax highlighting
Příklad:
:syntax on:colorscheme
Change the color scheme
Příklad:
:colorscheme desert:help {topic}
Open Vim help for a topic
Příklad:
:help :wm{a-z}
Set a mark at the current cursor position
Příklad:
ma'{a-z}
Jump to the line of a mark
Příklad:
'a`{a-z}
Jump to the exact position of a mark
Příklad:
`a:set paste
Enable paste mode to avoid auto-indent issues
Příklad:
:set paste:set ignorecase
Make searches case-insensitive
Příklad:
:set ignorecase:set hlsearch
Highlight all search matches
Příklad:
:set hlsearchga
Show the ASCII value of the character under the cursor
Příklad:
gazz
Center the current line on the screen
Příklad:
zzCtrl+g
Show the current file name and cursor position
Příklad:
Ctrl+gSouvisející nástroje
Zobrazit všechny nástrojePříkazy Git Cheat Sheet
Komplexní cheat pro příkazy Git. Prohledávejte více než 80 základních příkazů Git s příklady, popisy a kopírováním na jedno kliknutí.
Příkazy Docker Cheat Sheet
Komplexní cheat pro příkazy Dockeru. Prohledávejte 70+ základních příkazů Dockeru s příklady, popisy a kopírováním na jedno kliknutí.
Linux / Bash Příkazový Cheat Sheet
Komplexní cheat pro příkazy Linux a Bash. Hledejte přes 80 základních příkazů s příklady, popisy a kopírováním na jedno kliknutí.
SQL Formatter & Zkrášlovač
Formátujte, zkrášlujte a čistěte SQL dotazy okamžitě ve svém prohlížeči. Není vyžadováno žádné nahrávání – zcela soukromé a bezplatné.