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