Безкоштовний конвертер
Команди Vim Шпаргалка
Комплексна шпаргалка команд Vim. Шукайте понад 80 основних команд Vim із прикладами, описами та копією одним клацанням миші.
i
Enter Insert mode before the cursor
приклад:
iI
Enter Insert mode at the beginning of the line
приклад:
Ia
Enter Insert mode after the cursor
приклад:
aA
Enter Insert mode at the end of the line
приклад:
Ao
Open a new line below and enter Insert mode
приклад:
oO
Open a new line above and enter Insert mode
приклад:
Ov
Enter Visual mode (character selection)
приклад:
vV
Enter Visual Line mode (line selection)
приклад:
VCtrl+v
Enter Visual Block mode (column selection)
приклад:
Ctrl+v:
Enter Command-line mode
приклад:
:wEsc
Return to Normal mode from any mode
приклад:
EscR
Enter Replace mode (overwrite characters)
приклад:
Rh
Move cursor left
приклад:
5hj
Move cursor down
приклад:
10jk
Move cursor up
приклад:
10kl
Move cursor right
приклад:
5lw
Move to the start of the next word
приклад:
3wb
Move to the start of the previous word
приклад:
3be
Move to the end of the current word
приклад:
2e0
Move to the beginning of the line
приклад:
0^
Move to the first non-blank character of the line
приклад:
^$
Move to the end of the line
приклад:
$gg
Move to the first line of the file
приклад:
ggG
Move to the last line of the file
приклад:
G:N
Jump to line number N
приклад:
:42Ctrl+f
Scroll forward (down) one screen
приклад:
Ctrl+fCtrl+b
Scroll backward (up) one screen
приклад:
Ctrl+bCtrl+d
Scroll down half a screen
приклад:
Ctrl+dCtrl+u
Scroll up half a screen
приклад:
Ctrl+uH
Move cursor to the top of the screen
приклад:
HM
Move cursor to the middle of the screen
приклад:
ML
Move cursor to the bottom of the screen
приклад:
L%
Jump to matching bracket, parenthesis, or brace
приклад:
%x
Delete the character under the cursor
приклад:
xdd
Delete (cut) the current line
приклад:
dddw
Delete from cursor to the end of the word
приклад:
dwd$
Delete from cursor to the end of the line
приклад:
d$D
Delete from cursor to end of line (same as d$)
приклад:
Dyy
Yank (copy) the current line
приклад:
yyyw
Yank (copy) from cursor to end of word
приклад:
ywp
Paste after the cursor
приклад:
pP
Paste before the cursor
приклад:
Pu
Undo the last change
приклад:
uCtrl+r
Redo the last undone change
приклад:
Ctrl+rcc
Change (delete and enter insert mode) the current line
приклад:
cccw
Change from cursor to end of word
приклад:
cwc$
Change from cursor to end of line
приклад:
c$.
Repeat the last change
приклад:
.>>
Indent the current line one level to the right
приклад:
>><<
Unindent the current line one level to the left
приклад:
<<==
Auto-indent the current line
приклад:
==J
Join the current line with the line below
приклад:
J~
Toggle case of character under cursor
приклад:
~r{char}
Replace the character under the cursor with {char}
приклад:
ra/{pattern}
Search forward for pattern
приклад:
/foo?{pattern}
Search backward for pattern
приклад:
?foon
Repeat the last search in the same direction
приклад:
nN
Repeat the last search in the opposite direction
приклад:
N*
Search forward for the word under the cursor
приклад:
*#
Search backward for the word under the cursor
приклад:
#:s/old/new/g
Replace all occurrences of old with new on the current line
приклад:
:s/foo/bar/g:%s/old/new/g
Replace all occurrences of old with new in the whole file
приклад:
:%s/foo/bar/g:%s/old/new/gc
Replace all with confirmation prompts
приклад:
:%s/foo/bar/gc:noh
Clear the search highlight
приклад:
:noh:w
Save the current file
приклад:
:w:w filename
Save the current buffer as a new filename
приклад:
:w newfile.txt:q
Quit (close the window)
приклад:
:q:wq
Save and quit
приклад:
:wq:q!
Quit without saving (force quit)
приклад:
:q!:x
Save and quit (only writes if changes were made)
приклад:
:x:e filename
Open a file for editing
приклад:
:e README.md:sp
Split the window horizontally
приклад:
:sp file.txt:vsp
Split the window vertically
приклад:
:vsp file.txtCtrl+w+w
Switch focus to the next split window
приклад:
Ctrl+w wCtrl+w+h/j/k/l
Move focus to the window in the given direction
приклад:
Ctrl+w l:close
Close the current window split
приклад:
:close:only
Close all windows except the current one
приклад:
:only:bn
Switch to the next buffer
приклад:
:bn:bp
Switch to the previous buffer
приклад:
:bp:bd
Delete (close) the current buffer
приклад:
:bd:ls
List all open buffers
приклад:
:ls:b N
Switch to buffer number N
приклад:
:b 2:tabnew
Open a new tab
приклад:
:tabnew file.txt:tabn
Switch to the next tab
приклад:
:tabn:tabp
Switch to the previous tab
приклад:
:tabp:tabclose
Close the current tab
приклад:
:tabclosegt
Go to the next tab
приклад:
gtgT
Go to the previous tab
приклад:
gTq{a-z}
Start recording a macro into register {a-z}
приклад:
qqq (stop)
Stop recording the current macro
приклад:
q@{a-z}
Execute the macro stored in register {a-z}
приклад:
@q@@
Repeat the last executed macro
приклад:
@@N@{a-z}
Execute macro N times
приклад:
5@q:reg
Show the contents of all registers
приклад:
:regv then d
Select text in Visual mode then delete it
приклад:
vwdv then y
Select text in Visual mode then yank (copy) it
приклад:
vwyv then c
Select text in Visual mode then change it
приклад:
vwcv then >
Indent selected text to the right
приклад:
vip>vip
Select the current paragraph in Visual mode
приклад:
vipviw
Select the current word in Visual mode
приклад:
viwvis
Select the current sentence in Visual mode
приклад:
visV then J
Select lines in Visual Line mode then join them
приклад:
VjJ:set number
Show line numbers
приклад:
:set number:set nonumber
Hide line numbers
приклад:
:set nonumber:syntax on
Enable syntax highlighting
приклад:
:syntax on:colorscheme
Change the color scheme
приклад:
:colorscheme desert:help {topic}
Open Vim help for a topic
приклад:
:help :wm{a-z}
Set a mark at the current cursor position
приклад:
ma'{a-z}
Jump to the line of a mark
приклад:
'a`{a-z}
Jump to the exact position of a mark
приклад:
`a:set paste
Enable paste mode to avoid auto-indent issues
приклад:
:set paste:set ignorecase
Make searches case-insensitive
приклад:
:set ignorecase:set hlsearch
Highlight all search matches
приклад:
:set hlsearchga
Show the ASCII value of the character under the cursor
приклад:
gazz
Center the current line on the screen
приклад:
zzCtrl+g
Show the current file name and cursor position
приклад:
Ctrl+gСхожі інструменти
Переглянути всі інструментиКоманди Git Шпаргалка
Комплексна шпаргалка команд Git. Шукайте понад 80 основних команд Git із прикладами, описами та копією одним клацанням миші.
Команди Docker Шпаргалка
Комплексна шпаргалка команд Docker. Шукайте понад 70 основних команд Docker із прикладами, описами та копією одним клацанням миші.
Linux / Bash Командна шпаргалка
Комплексна шпаргалка команд Linux і Bash. Шукайте понад 80 основних команд із прикладами, описами та копією одним клацанням миші.
Форматувальник SQL & Прикраса
Миттєво форматуйте, покращуйте та очищайте запити SQL у своєму браузері. Завантаження не потрібне — повністю приватне та безкоштовне.