Ingyenes konverter
Vim parancsok Cheat Sheet
Átfogó Vim parancs csalólap. Keressen 80+ alapvető Vim-parancsban példákkal, leírásokkal és egy kattintásos másolattal.
i
Enter Insert mode before the cursor
Példa:
iI
Enter Insert mode at the beginning of the line
Példa:
Ia
Enter Insert mode after the cursor
Példa:
aA
Enter Insert mode at the end of the line
Példa:
Ao
Open a new line below and enter Insert mode
Példa:
oO
Open a new line above and enter Insert mode
Példa:
Ov
Enter Visual mode (character selection)
Példa:
vV
Enter Visual Line mode (line selection)
Példa:
VCtrl+v
Enter Visual Block mode (column selection)
Példa:
Ctrl+v:
Enter Command-line mode
Példa:
:wEsc
Return to Normal mode from any mode
Példa:
EscR
Enter Replace mode (overwrite characters)
Példa:
Rh
Move cursor left
Példa:
5hj
Move cursor down
Példa:
10jk
Move cursor up
Példa:
10kl
Move cursor right
Példa:
5lw
Move to the start of the next word
Példa:
3wb
Move to the start of the previous word
Példa:
3be
Move to the end of the current word
Példa:
2e0
Move to the beginning of the line
Példa:
0^
Move to the first non-blank character of the line
Példa:
^$
Move to the end of the line
Példa:
$gg
Move to the first line of the file
Példa:
ggG
Move to the last line of the file
Példa:
G:N
Jump to line number N
Példa:
:42Ctrl+f
Scroll forward (down) one screen
Példa:
Ctrl+fCtrl+b
Scroll backward (up) one screen
Példa:
Ctrl+bCtrl+d
Scroll down half a screen
Példa:
Ctrl+dCtrl+u
Scroll up half a screen
Példa:
Ctrl+uH
Move cursor to the top of the screen
Példa:
HM
Move cursor to the middle of the screen
Példa:
ML
Move cursor to the bottom of the screen
Példa:
L%
Jump to matching bracket, parenthesis, or brace
Példa:
%x
Delete the character under the cursor
Példa:
xdd
Delete (cut) the current line
Példa:
dddw
Delete from cursor to the end of the word
Példa:
dwd$
Delete from cursor to the end of the line
Példa:
d$D
Delete from cursor to end of line (same as d$)
Példa:
Dyy
Yank (copy) the current line
Példa:
yyyw
Yank (copy) from cursor to end of word
Példa:
ywp
Paste after the cursor
Példa:
pP
Paste before the cursor
Példa:
Pu
Undo the last change
Példa:
uCtrl+r
Redo the last undone change
Példa:
Ctrl+rcc
Change (delete and enter insert mode) the current line
Példa:
cccw
Change from cursor to end of word
Példa:
cwc$
Change from cursor to end of line
Példa:
c$.
Repeat the last change
Példa:
.>>
Indent the current line one level to the right
Példa:
>><<
Unindent the current line one level to the left
Példa:
<<==
Auto-indent the current line
Példa:
==J
Join the current line with the line below
Példa:
J~
Toggle case of character under cursor
Példa:
~r{char}
Replace the character under the cursor with {char}
Példa:
ra/{pattern}
Search forward for pattern
Példa:
/foo?{pattern}
Search backward for pattern
Példa:
?foon
Repeat the last search in the same direction
Példa:
nN
Repeat the last search in the opposite direction
Példa:
N*
Search forward for the word under the cursor
Példa:
*#
Search backward for the word under the cursor
Példa:
#:s/old/new/g
Replace all occurrences of old with new on the current line
Példa:
:s/foo/bar/g:%s/old/new/g
Replace all occurrences of old with new in the whole file
Példa:
:%s/foo/bar/g:%s/old/new/gc
Replace all with confirmation prompts
Példa:
:%s/foo/bar/gc:noh
Clear the search highlight
Példa:
:noh:w
Save the current file
Példa:
:w:w filename
Save the current buffer as a new filename
Példa:
:w newfile.txt:q
Quit (close the window)
Példa:
:q:wq
Save and quit
Példa:
:wq:q!
Quit without saving (force quit)
Példa:
:q!:x
Save and quit (only writes if changes were made)
Példa:
:x:e filename
Open a file for editing
Példa:
:e README.md:sp
Split the window horizontally
Példa:
:sp file.txt:vsp
Split the window vertically
Példa:
:vsp file.txtCtrl+w+w
Switch focus to the next split window
Példa:
Ctrl+w wCtrl+w+h/j/k/l
Move focus to the window in the given direction
Példa:
Ctrl+w l:close
Close the current window split
Példa:
:close:only
Close all windows except the current one
Példa:
:only:bn
Switch to the next buffer
Példa:
:bn:bp
Switch to the previous buffer
Példa:
:bp:bd
Delete (close) the current buffer
Példa:
:bd:ls
List all open buffers
Példa:
:ls:b N
Switch to buffer number N
Példa:
:b 2:tabnew
Open a new tab
Példa:
:tabnew file.txt:tabn
Switch to the next tab
Példa:
:tabn:tabp
Switch to the previous tab
Példa:
:tabp:tabclose
Close the current tab
Példa:
:tabclosegt
Go to the next tab
Példa:
gtgT
Go to the previous tab
Példa:
gTq{a-z}
Start recording a macro into register {a-z}
Példa:
qqq (stop)
Stop recording the current macro
Példa:
q@{a-z}
Execute the macro stored in register {a-z}
Példa:
@q@@
Repeat the last executed macro
Példa:
@@N@{a-z}
Execute macro N times
Példa:
5@q:reg
Show the contents of all registers
Példa:
:regv then d
Select text in Visual mode then delete it
Példa:
vwdv then y
Select text in Visual mode then yank (copy) it
Példa:
vwyv then c
Select text in Visual mode then change it
Példa:
vwcv then >
Indent selected text to the right
Példa:
vip>vip
Select the current paragraph in Visual mode
Példa:
vipviw
Select the current word in Visual mode
Példa:
viwvis
Select the current sentence in Visual mode
Példa:
visV then J
Select lines in Visual Line mode then join them
Példa:
VjJ:set number
Show line numbers
Példa:
:set number:set nonumber
Hide line numbers
Példa:
:set nonumber:syntax on
Enable syntax highlighting
Példa:
:syntax on:colorscheme
Change the color scheme
Példa:
:colorscheme desert:help {topic}
Open Vim help for a topic
Példa:
:help :wm{a-z}
Set a mark at the current cursor position
Példa:
ma'{a-z}
Jump to the line of a mark
Példa:
'a`{a-z}
Jump to the exact position of a mark
Példa:
`a:set paste
Enable paste mode to avoid auto-indent issues
Példa:
:set paste:set ignorecase
Make searches case-insensitive
Példa:
:set ignorecase:set hlsearch
Highlight all search matches
Példa:
:set hlsearchga
Show the ASCII value of the character under the cursor
Példa:
gazz
Center the current line on the screen
Példa:
zzCtrl+g
Show the current file name and cursor position
Példa:
Ctrl+gKapcsolódó eszközök
Összes eszköz megtekintéseGit Commands Cheat Sheet
Átfogó Git parancs csalólap. Keressen 80+ alapvető Git-parancsban példákkal, leírásokkal és egykattintásos másolattal.
Docker parancsok Cheat Sheet
Átfogó Docker parancs csalólap. Keressen több mint 70 alapvető Docker-parancsban példákkal, leírásokkal és egy kattintásos másolattal.
Linux / Bash Command Cheat Sheet
Átfogó Linux és Bash parancsok csalólapja. Keressen több mint 80 alapvető parancsban példákkal, leírásokkal és egy kattintásos másolattal.
SQL formázó & Szépítő
Formázza, szépítse és tisztítsa meg az SQL-lekérdezéseket azonnal a böngészőjében. Nincs szükség feltöltésre – teljesen privát és ingyenes.