Darmowy konwerter
Polecenia Vima Ściągawka
Kompleksowy ściągawka do poleceń Vima. Wyszukaj ponad 80 podstawowych poleceń Vima z przykładami, opisami i kopią jednym kliknięciem.
i
Enter Insert mode before the cursor
Przykład:
iI
Enter Insert mode at the beginning of the line
Przykład:
Ia
Enter Insert mode after the cursor
Przykład:
aA
Enter Insert mode at the end of the line
Przykład:
Ao
Open a new line below and enter Insert mode
Przykład:
oO
Open a new line above and enter Insert mode
Przykład:
Ov
Enter Visual mode (character selection)
Przykład:
vV
Enter Visual Line mode (line selection)
Przykład:
VCtrl+v
Enter Visual Block mode (column selection)
Przykład:
Ctrl+v:
Enter Command-line mode
Przykład:
:wEsc
Return to Normal mode from any mode
Przykład:
EscR
Enter Replace mode (overwrite characters)
Przykład:
Rh
Move cursor left
Przykład:
5hj
Move cursor down
Przykład:
10jk
Move cursor up
Przykład:
10kl
Move cursor right
Przykład:
5lw
Move to the start of the next word
Przykład:
3wb
Move to the start of the previous word
Przykład:
3be
Move to the end of the current word
Przykład:
2e0
Move to the beginning of the line
Przykład:
0^
Move to the first non-blank character of the line
Przykład:
^$
Move to the end of the line
Przykład:
$gg
Move to the first line of the file
Przykład:
ggG
Move to the last line of the file
Przykład:
G:N
Jump to line number N
Przykład:
:42Ctrl+f
Scroll forward (down) one screen
Przykład:
Ctrl+fCtrl+b
Scroll backward (up) one screen
Przykład:
Ctrl+bCtrl+d
Scroll down half a screen
Przykład:
Ctrl+dCtrl+u
Scroll up half a screen
Przykład:
Ctrl+uH
Move cursor to the top of the screen
Przykład:
HM
Move cursor to the middle of the screen
Przykład:
ML
Move cursor to the bottom of the screen
Przykład:
L%
Jump to matching bracket, parenthesis, or brace
Przykład:
%x
Delete the character under the cursor
Przykład:
xdd
Delete (cut) the current line
Przykład:
dddw
Delete from cursor to the end of the word
Przykład:
dwd$
Delete from cursor to the end of the line
Przykład:
d$D
Delete from cursor to end of line (same as d$)
Przykład:
Dyy
Yank (copy) the current line
Przykład:
yyyw
Yank (copy) from cursor to end of word
Przykład:
ywp
Paste after the cursor
Przykład:
pP
Paste before the cursor
Przykład:
Pu
Undo the last change
Przykład:
uCtrl+r
Redo the last undone change
Przykład:
Ctrl+rcc
Change (delete and enter insert mode) the current line
Przykład:
cccw
Change from cursor to end of word
Przykład:
cwc$
Change from cursor to end of line
Przykład:
c$.
Repeat the last change
Przykład:
.>>
Indent the current line one level to the right
Przykład:
>><<
Unindent the current line one level to the left
Przykład:
<<==
Auto-indent the current line
Przykład:
==J
Join the current line with the line below
Przykład:
J~
Toggle case of character under cursor
Przykład:
~r{char}
Replace the character under the cursor with {char}
Przykład:
ra/{pattern}
Search forward for pattern
Przykład:
/foo?{pattern}
Search backward for pattern
Przykład:
?foon
Repeat the last search in the same direction
Przykład:
nN
Repeat the last search in the opposite direction
Przykład:
N*
Search forward for the word under the cursor
Przykład:
*#
Search backward for the word under the cursor
Przykład:
#:s/old/new/g
Replace all occurrences of old with new on the current line
Przykład:
:s/foo/bar/g:%s/old/new/g
Replace all occurrences of old with new in the whole file
Przykład:
:%s/foo/bar/g:%s/old/new/gc
Replace all with confirmation prompts
Przykład:
:%s/foo/bar/gc:noh
Clear the search highlight
Przykład:
:noh:w
Save the current file
Przykład:
:w:w filename
Save the current buffer as a new filename
Przykład:
:w newfile.txt:q
Quit (close the window)
Przykład:
:q:wq
Save and quit
Przykład:
:wq:q!
Quit without saving (force quit)
Przykład:
:q!:x
Save and quit (only writes if changes were made)
Przykład:
:x:e filename
Open a file for editing
Przykład:
:e README.md:sp
Split the window horizontally
Przykład:
:sp file.txt:vsp
Split the window vertically
Przykład:
:vsp file.txtCtrl+w+w
Switch focus to the next split window
Przykład:
Ctrl+w wCtrl+w+h/j/k/l
Move focus to the window in the given direction
Przykład:
Ctrl+w l:close
Close the current window split
Przykład:
:close:only
Close all windows except the current one
Przykład:
:only:bn
Switch to the next buffer
Przykład:
:bn:bp
Switch to the previous buffer
Przykład:
:bp:bd
Delete (close) the current buffer
Przykład:
:bd:ls
List all open buffers
Przykład:
:ls:b N
Switch to buffer number N
Przykład:
:b 2:tabnew
Open a new tab
Przykład:
:tabnew file.txt:tabn
Switch to the next tab
Przykład:
:tabn:tabp
Switch to the previous tab
Przykład:
:tabp:tabclose
Close the current tab
Przykład:
:tabclosegt
Go to the next tab
Przykład:
gtgT
Go to the previous tab
Przykład:
gTq{a-z}
Start recording a macro into register {a-z}
Przykład:
qqq (stop)
Stop recording the current macro
Przykład:
q@{a-z}
Execute the macro stored in register {a-z}
Przykład:
@q@@
Repeat the last executed macro
Przykład:
@@N@{a-z}
Execute macro N times
Przykład:
5@q:reg
Show the contents of all registers
Przykład:
:regv then d
Select text in Visual mode then delete it
Przykład:
vwdv then y
Select text in Visual mode then yank (copy) it
Przykład:
vwyv then c
Select text in Visual mode then change it
Przykład:
vwcv then >
Indent selected text to the right
Przykład:
vip>vip
Select the current paragraph in Visual mode
Przykład:
vipviw
Select the current word in Visual mode
Przykład:
viwvis
Select the current sentence in Visual mode
Przykład:
visV then J
Select lines in Visual Line mode then join them
Przykład:
VjJ:set number
Show line numbers
Przykład:
:set number:set nonumber
Hide line numbers
Przykład:
:set nonumber:syntax on
Enable syntax highlighting
Przykład:
:syntax on:colorscheme
Change the color scheme
Przykład:
:colorscheme desert:help {topic}
Open Vim help for a topic
Przykład:
:help :wm{a-z}
Set a mark at the current cursor position
Przykład:
ma'{a-z}
Jump to the line of a mark
Przykład:
'a`{a-z}
Jump to the exact position of a mark
Przykład:
`a:set paste
Enable paste mode to avoid auto-indent issues
Przykład:
:set paste:set ignorecase
Make searches case-insensitive
Przykład:
:set ignorecase:set hlsearch
Highlight all search matches
Przykład:
:set hlsearchga
Show the ASCII value of the character under the cursor
Przykład:
gazz
Center the current line on the screen
Przykład:
zzCtrl+g
Show the current file name and cursor position
Przykład:
Ctrl+gPowiązane narzędzia
Zobacz wszystkie narzędziaPolecenia Gita Ściągawka
Kompleksowy ściągawka do poleceń Git. Przeszukuj ponad 80 podstawowych poleceń Git, korzystając z przykładów, opisów i kopii dostępnych jednym kliknięciem.
Polecenia Dockera Ściągawka
Kompleksowy ściągawka do poleceń Dockera. Przeszukuj ponad 70 podstawowych poleceń Dockera, korzystając z przykładów, opisów i kopii dostępnych jednym kliknięciem.
Linux/Bash Ściągawka poleceń
Kompleksowa ściągawka dotycząca poleceń Linux i Bash. Wyszukaj ponad 80 podstawowych poleceń za pomocą przykładów, opisów i kopii jednym kliknięciem.
Formater SQL & Upiększacz
Natychmiast formatuj, upiększaj i czyść zapytania SQL w przeglądarce. Nie jest wymagane przesyłanie — całkowicie prywatne i bezpłatne.