Convertor gratuit
Comenzi Vim Cheat Sheet
Fișă cuprinzătoare pentru comenzile Vim. Căutați peste 80 de comenzi Vim esențiale cu exemple, descrieri și copie cu un singur clic.
i
Enter Insert mode before the cursor
Exemplu:
iI
Enter Insert mode at the beginning of the line
Exemplu:
Ia
Enter Insert mode after the cursor
Exemplu:
aA
Enter Insert mode at the end of the line
Exemplu:
Ao
Open a new line below and enter Insert mode
Exemplu:
oO
Open a new line above and enter Insert mode
Exemplu:
Ov
Enter Visual mode (character selection)
Exemplu:
vV
Enter Visual Line mode (line selection)
Exemplu:
VCtrl+v
Enter Visual Block mode (column selection)
Exemplu:
Ctrl+v:
Enter Command-line mode
Exemplu:
:wEsc
Return to Normal mode from any mode
Exemplu:
EscR
Enter Replace mode (overwrite characters)
Exemplu:
Rh
Move cursor left
Exemplu:
5hj
Move cursor down
Exemplu:
10jk
Move cursor up
Exemplu:
10kl
Move cursor right
Exemplu:
5lw
Move to the start of the next word
Exemplu:
3wb
Move to the start of the previous word
Exemplu:
3be
Move to the end of the current word
Exemplu:
2e0
Move to the beginning of the line
Exemplu:
0^
Move to the first non-blank character of the line
Exemplu:
^$
Move to the end of the line
Exemplu:
$gg
Move to the first line of the file
Exemplu:
ggG
Move to the last line of the file
Exemplu:
G:N
Jump to line number N
Exemplu:
:42Ctrl+f
Scroll forward (down) one screen
Exemplu:
Ctrl+fCtrl+b
Scroll backward (up) one screen
Exemplu:
Ctrl+bCtrl+d
Scroll down half a screen
Exemplu:
Ctrl+dCtrl+u
Scroll up half a screen
Exemplu:
Ctrl+uH
Move cursor to the top of the screen
Exemplu:
HM
Move cursor to the middle of the screen
Exemplu:
ML
Move cursor to the bottom of the screen
Exemplu:
L%
Jump to matching bracket, parenthesis, or brace
Exemplu:
%x
Delete the character under the cursor
Exemplu:
xdd
Delete (cut) the current line
Exemplu:
dddw
Delete from cursor to the end of the word
Exemplu:
dwd$
Delete from cursor to the end of the line
Exemplu:
d$D
Delete from cursor to end of line (same as d$)
Exemplu:
Dyy
Yank (copy) the current line
Exemplu:
yyyw
Yank (copy) from cursor to end of word
Exemplu:
ywp
Paste after the cursor
Exemplu:
pP
Paste before the cursor
Exemplu:
Pu
Undo the last change
Exemplu:
uCtrl+r
Redo the last undone change
Exemplu:
Ctrl+rcc
Change (delete and enter insert mode) the current line
Exemplu:
cccw
Change from cursor to end of word
Exemplu:
cwc$
Change from cursor to end of line
Exemplu:
c$.
Repeat the last change
Exemplu:
.>>
Indent the current line one level to the right
Exemplu:
>><<
Unindent the current line one level to the left
Exemplu:
<<==
Auto-indent the current line
Exemplu:
==J
Join the current line with the line below
Exemplu:
J~
Toggle case of character under cursor
Exemplu:
~r{char}
Replace the character under the cursor with {char}
Exemplu:
ra/{pattern}
Search forward for pattern
Exemplu:
/foo?{pattern}
Search backward for pattern
Exemplu:
?foon
Repeat the last search in the same direction
Exemplu:
nN
Repeat the last search in the opposite direction
Exemplu:
N*
Search forward for the word under the cursor
Exemplu:
*#
Search backward for the word under the cursor
Exemplu:
#:s/old/new/g
Replace all occurrences of old with new on the current line
Exemplu:
:s/foo/bar/g:%s/old/new/g
Replace all occurrences of old with new in the whole file
Exemplu:
:%s/foo/bar/g:%s/old/new/gc
Replace all with confirmation prompts
Exemplu:
:%s/foo/bar/gc:noh
Clear the search highlight
Exemplu:
:noh:w
Save the current file
Exemplu:
:w:w filename
Save the current buffer as a new filename
Exemplu:
:w newfile.txt:q
Quit (close the window)
Exemplu:
:q:wq
Save and quit
Exemplu:
:wq:q!
Quit without saving (force quit)
Exemplu:
:q!:x
Save and quit (only writes if changes were made)
Exemplu:
:x:e filename
Open a file for editing
Exemplu:
:e README.md:sp
Split the window horizontally
Exemplu:
:sp file.txt:vsp
Split the window vertically
Exemplu:
:vsp file.txtCtrl+w+w
Switch focus to the next split window
Exemplu:
Ctrl+w wCtrl+w+h/j/k/l
Move focus to the window in the given direction
Exemplu:
Ctrl+w l:close
Close the current window split
Exemplu:
:close:only
Close all windows except the current one
Exemplu:
:only:bn
Switch to the next buffer
Exemplu:
:bn:bp
Switch to the previous buffer
Exemplu:
:bp:bd
Delete (close) the current buffer
Exemplu:
:bd:ls
List all open buffers
Exemplu:
:ls:b N
Switch to buffer number N
Exemplu:
:b 2:tabnew
Open a new tab
Exemplu:
:tabnew file.txt:tabn
Switch to the next tab
Exemplu:
:tabn:tabp
Switch to the previous tab
Exemplu:
:tabp:tabclose
Close the current tab
Exemplu:
:tabclosegt
Go to the next tab
Exemplu:
gtgT
Go to the previous tab
Exemplu:
gTq{a-z}
Start recording a macro into register {a-z}
Exemplu:
qqq (stop)
Stop recording the current macro
Exemplu:
q@{a-z}
Execute the macro stored in register {a-z}
Exemplu:
@q@@
Repeat the last executed macro
Exemplu:
@@N@{a-z}
Execute macro N times
Exemplu:
5@q:reg
Show the contents of all registers
Exemplu:
:regv then d
Select text in Visual mode then delete it
Exemplu:
vwdv then y
Select text in Visual mode then yank (copy) it
Exemplu:
vwyv then c
Select text in Visual mode then change it
Exemplu:
vwcv then >
Indent selected text to the right
Exemplu:
vip>vip
Select the current paragraph in Visual mode
Exemplu:
vipviw
Select the current word in Visual mode
Exemplu:
viwvis
Select the current sentence in Visual mode
Exemplu:
visV then J
Select lines in Visual Line mode then join them
Exemplu:
VjJ:set number
Show line numbers
Exemplu:
:set number:set nonumber
Hide line numbers
Exemplu:
:set nonumber:syntax on
Enable syntax highlighting
Exemplu:
:syntax on:colorscheme
Change the color scheme
Exemplu:
:colorscheme desert:help {topic}
Open Vim help for a topic
Exemplu:
:help :wm{a-z}
Set a mark at the current cursor position
Exemplu:
ma'{a-z}
Jump to the line of a mark
Exemplu:
'a`{a-z}
Jump to the exact position of a mark
Exemplu:
`a:set paste
Enable paste mode to avoid auto-indent issues
Exemplu:
:set paste:set ignorecase
Make searches case-insensitive
Exemplu:
:set ignorecase:set hlsearch
Highlight all search matches
Exemplu:
:set hlsearchga
Show the ASCII value of the character under the cursor
Exemplu:
gazz
Center the current line on the screen
Exemplu:
zzCtrl+g
Show the current file name and cursor position
Exemplu:
Ctrl+gInstrumente Similare
Vezi toate instrumenteleComenzi Git Cheat Sheet
Fișă cuprinzătoare pentru comenzile Git. Căutați peste 80 de comenzi Git esențiale cu exemple, descrieri și copie cu un singur clic.
Comenzi Docker Cheat Sheet
Fișă cuprinzătoare pentru comenzile Docker. Căutați peste 70 de comenzi Docker esențiale cu exemple, descrieri și copie cu un singur clic.
Linux / Bash Comanda Cheat Sheet
Fișă cuprinzătoare pentru comenzile Linux și Bash. Căutați peste 80 de comenzi esențiale cu exemple, descrieri și copie cu un singur clic.
Formatator SQL & Înfrumusețator
Formatați, înfrumusețați și curățați interogările SQL instantaneu în browser. Nu este necesară încărcarea - complet privat și gratuit.