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:i
I
Enter Insert mode at the beginning of the line
Przykład:I
a
Enter Insert mode after the cursor
Przykład:a
A
Enter Insert mode at the end of the line
Przykład:A
o
Open a new line below and enter Insert mode
Przykład:o
O
Open a new line above and enter Insert mode
Przykład:O
v
Enter Visual mode (character selection)
Przykład:v
V
Enter Visual Line mode (line selection)
Przykład:V
Ctrl+v
Enter Visual Block mode (column selection)
Przykład:Ctrl+v
:
Enter Command-line mode
Przykład::w
Esc
Return to Normal mode from any mode
Przykład:Esc
R
Enter Replace mode (overwrite characters)
Przykład:R
h
Move cursor left
Przykład:5h
j
Move cursor down
Przykład:10j
k
Move cursor up
Przykład:10k
l
Move cursor right
Przykład:5l
w
Move to the start of the next word
Przykład:3w
b
Move to the start of the previous word
Przykład:3b
e
Move to the end of the current word
Przykład:2e
0
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:gg
G
Move to the last line of the file
Przykład:G
:N
Jump to line number N
Przykład::42
Ctrl+f
Scroll forward (down) one screen
Przykład:Ctrl+f
Ctrl+b
Scroll backward (up) one screen
Przykład:Ctrl+b
Ctrl+d
Scroll down half a screen
Przykład:Ctrl+d
Ctrl+u
Scroll up half a screen
Przykład:Ctrl+u
H
Move cursor to the top of the screen
Przykład:H
M
Move cursor to the middle of the screen
Przykład:M
L
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:x
dd
Delete (cut) the current line
Przykład:dd
dw
Delete from cursor to the end of the word
Przykład:dw
d$
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:D
yy
Yank (copy) the current line
Przykład:yy
yw
Yank (copy) from cursor to end of word
Przykład:yw
p
Paste after the cursor
Przykład:p
P
Paste before the cursor
Przykład:P
u
Undo the last change
Przykład:u
Ctrl+r
Redo the last undone change
Przykład:Ctrl+r
cc
Change (delete and enter insert mode) the current line
Przykład:cc
cw
Change from cursor to end of word
Przykład:cw
c$
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:?foo
n
Repeat the last search in the same direction
Przykład:n
N
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.txt
Ctrl+w+w
Switch focus to the next split window
Przykład:Ctrl+w w
Ctrl+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::tabclose
gt
Go to the next tab
Przykład:gt
gT
Go to the previous tab
Przykład:gT
q{a-z}
Start recording a macro into register {a-z}
Przykład:qq
q (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::reg
v then d
Select text in Visual mode then delete it
Przykład:vwd
v then y
Select text in Visual mode then yank (copy) it
Przykład:vwy
v then c
Select text in Visual mode then change it
Przykład:vwc
v then >
Indent selected text to the right
Przykład:vip>
vip
Select the current paragraph in Visual mode
Przykład:vip
viw
Select the current word in Visual mode
Przykład:viw
vis
Select the current sentence in Visual mode
Przykład:vis
V 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 :w
m{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 hlsearch
ga
Show the ASCII value of the character under the cursor
Przykład:ga
zz
Center the current line on the screen
Przykład:zz
Ctrl+g
Show the current file name and cursor position
Przykład:Ctrl+g

O tym narzędziu

Obszerny przewodnik skrócony po poleceniach vima. Przeglądaj często używane polecenia, składnię i przykłady uporządkowane według kategorii. Możliwość wyszukiwania i przyjazna dla urządzeń mobilnych — dodaj tę stronę do zakładek, aby uzyskać natychmiastowy dostęp, gdy potrzebujesz szybkiego przypomnienia.

Jak używać

  1. Przeglądaj podzielone na kategorie sekcje referencyjne.
  2. Użyj paska wyszukiwania, aby znaleźć określone polecenia lub składnię.
  3. Kliknij dowolny wpis, aby zobaczyć przykłady użycia i objaśnienia.
  4. Kopiuj polecenia bezpośrednio do użycia w terminalu lub edytorze.

Często zadawane pytania

Czy to odniesienie jest aktualne?
Odniesienie obejmuje powszechnie używane polecenia i składnię, która jest stabilna w różnych wersjach. Najnowsze dodatki lub funkcje specyficzne dla wersji można znaleźć w oficjalnej dokumentacji.
Czy mogę używać tego offline?
Po załadowaniu strona działa bez połączenia z Internetem. Dodaj go do zakładek, aby uzyskać szybki dostęp — cała zawartość będzie renderowana w przeglądarce bez dalszych żądań sieciowych.
Czy to jest kompleksowe, czy tylko podstawy?
Obejmuje najczęściej używane polecenia i wzorce, które obsługują 90% codziennych zadań. W przypadku funkcji niszowych lub zaawansowanych zapoznaj się z oficjalną dokumentacją.
Czy mogę zaproponować dodatki?
Regularnie aktualizujemy nasze referencje. Jeśli zauważysz brakujące polecenia lub masz sugestie, daj nam znać za pośrednictwem naszej strony kontaktowej.