Pulsuz çevirici

Vim əmrləri Fırıldaq vərəqi

Hərtərəfli Vim əmr fırıldaqçı vərəqi. Nümunələr, təsvirlər və bir klik surəti ilə 80+ əsas Vim əmrini axtarın.

i
Enter Insert mode before the cursor
Misal:i
I
Enter Insert mode at the beginning of the line
Misal:I
a
Enter Insert mode after the cursor
Misal:a
A
Enter Insert mode at the end of the line
Misal:A
o
Open a new line below and enter Insert mode
Misal:o
O
Open a new line above and enter Insert mode
Misal:O
v
Enter Visual mode (character selection)
Misal:v
V
Enter Visual Line mode (line selection)
Misal:V
Ctrl+v
Enter Visual Block mode (column selection)
Misal:Ctrl+v
:
Enter Command-line mode
Misal::w
Esc
Return to Normal mode from any mode
Misal:Esc
R
Enter Replace mode (overwrite characters)
Misal:R
h
Move cursor left
Misal:5h
j
Move cursor down
Misal:10j
k
Move cursor up
Misal:10k
l
Move cursor right
Misal:5l
w
Move to the start of the next word
Misal:3w
b
Move to the start of the previous word
Misal:3b
e
Move to the end of the current word
Misal:2e
0
Move to the beginning of the line
Misal:0
^
Move to the first non-blank character of the line
Misal:^
$
Move to the end of the line
Misal:$
gg
Move to the first line of the file
Misal:gg
G
Move to the last line of the file
Misal:G
:N
Jump to line number N
Misal::42
Ctrl+f
Scroll forward (down) one screen
Misal:Ctrl+f
Ctrl+b
Scroll backward (up) one screen
Misal:Ctrl+b
Ctrl+d
Scroll down half a screen
Misal:Ctrl+d
Ctrl+u
Scroll up half a screen
Misal:Ctrl+u
H
Move cursor to the top of the screen
Misal:H
M
Move cursor to the middle of the screen
Misal:M
L
Move cursor to the bottom of the screen
Misal:L
%
Jump to matching bracket, parenthesis, or brace
Misal:%
x
Delete the character under the cursor
Misal:x
dd
Delete (cut) the current line
Misal:dd
dw
Delete from cursor to the end of the word
Misal:dw
d$
Delete from cursor to the end of the line
Misal:d$
D
Delete from cursor to end of line (same as d$)
Misal:D
yy
Yank (copy) the current line
Misal:yy
yw
Yank (copy) from cursor to end of word
Misal:yw
p
Paste after the cursor
Misal:p
P
Paste before the cursor
Misal:P
u
Undo the last change
Misal:u
Ctrl+r
Redo the last undone change
Misal:Ctrl+r
cc
Change (delete and enter insert mode) the current line
Misal:cc
cw
Change from cursor to end of word
Misal:cw
c$
Change from cursor to end of line
Misal:c$
.
Repeat the last change
Misal:.
>>
Indent the current line one level to the right
Misal:>>
<<
Unindent the current line one level to the left
Misal:<<
==
Auto-indent the current line
Misal:==
J
Join the current line with the line below
Misal:J
~
Toggle case of character under cursor
Misal:~
r{char}
Replace the character under the cursor with {char}
Misal:ra
/{pattern}
Search forward for pattern
Misal:/foo
?{pattern}
Search backward for pattern
Misal:?foo
n
Repeat the last search in the same direction
Misal:n
N
Repeat the last search in the opposite direction
Misal:N
*
Search forward for the word under the cursor
Misal:*
#
Search backward for the word under the cursor
Misal:#
:s/old/new/g
Replace all occurrences of old with new on the current line
Misal::s/foo/bar/g
:%s/old/new/g
Replace all occurrences of old with new in the whole file
Misal::%s/foo/bar/g
:%s/old/new/gc
Replace all with confirmation prompts
Misal::%s/foo/bar/gc
:noh
Clear the search highlight
Misal::noh
:w
Save the current file
Misal::w
:w filename
Save the current buffer as a new filename
Misal::w newfile.txt
:q
Quit (close the window)
Misal::q
:wq
Save and quit
Misal::wq
:q!
Quit without saving (force quit)
Misal::q!
:x
Save and quit (only writes if changes were made)
Misal::x
:e filename
Open a file for editing
Misal::e README.md
:sp
Split the window horizontally
Misal::sp file.txt
:vsp
Split the window vertically
Misal::vsp file.txt
Ctrl+w+w
Switch focus to the next split window
Misal:Ctrl+w w
Ctrl+w+h/j/k/l
Move focus to the window in the given direction
Misal:Ctrl+w l
:close
Close the current window split
Misal::close
:only
Close all windows except the current one
Misal::only
:bn
Switch to the next buffer
Misal::bn
:bp
Switch to the previous buffer
Misal::bp
:bd
Delete (close) the current buffer
Misal::bd
:ls
List all open buffers
Misal::ls
:b N
Switch to buffer number N
Misal::b 2
:tabnew
Open a new tab
Misal::tabnew file.txt
:tabn
Switch to the next tab
Misal::tabn
:tabp
Switch to the previous tab
Misal::tabp
:tabclose
Close the current tab
Misal::tabclose
gt
Go to the next tab
Misal:gt
gT
Go to the previous tab
Misal:gT
q{a-z}
Start recording a macro into register {a-z}
Misal:qq
q (stop)
Stop recording the current macro
Misal:q
@{a-z}
Execute the macro stored in register {a-z}
Misal:@q
@@
Repeat the last executed macro
Misal:@@
N@{a-z}
Execute macro N times
Misal:5@q
:reg
Show the contents of all registers
Misal::reg
v then d
Select text in Visual mode then delete it
Misal:vwd
v then y
Select text in Visual mode then yank (copy) it
Misal:vwy
v then c
Select text in Visual mode then change it
Misal:vwc
v then >
Indent selected text to the right
Misal:vip>
vip
Select the current paragraph in Visual mode
Misal:vip
viw
Select the current word in Visual mode
Misal:viw
vis
Select the current sentence in Visual mode
Misal:vis
V then J
Select lines in Visual Line mode then join them
Misal:VjJ
:set number
Show line numbers
Misal::set number
:set nonumber
Hide line numbers
Misal::set nonumber
:syntax on
Enable syntax highlighting
Misal::syntax on
:colorscheme
Change the color scheme
Misal::colorscheme desert
:help {topic}
Open Vim help for a topic
Misal::help :w
m{a-z}
Set a mark at the current cursor position
Misal:ma
'{a-z}
Jump to the line of a mark
Misal:'a
`{a-z}
Jump to the exact position of a mark
Misal:`a
:set paste
Enable paste mode to avoid auto-indent issues
Misal::set paste
:set ignorecase
Make searches case-insensitive
Misal::set ignorecase
:set hlsearch
Highlight all search matches
Misal::set hlsearch
ga
Show the ASCII value of the character under the cursor
Misal:ga
zz
Center the current line on the screen
Misal:zz
Ctrl+g
Show the current file name and cursor position
Misal:Ctrl+g

Bu alət haqqında

vim əmrləri üçün hərtərəfli sürətli istinad bələdçisi. Ümumi istifadə olunan əmrləri, sintaksisi və kateqoriyalar üzrə təşkil edilmiş nümunələri nəzərdən keçirin. Axtarıla bilən və mobil telefona uyğundur — tez xatırladıcıya ehtiyacınız olduqda ani giriş üçün bu səhifəni işarələyin.

Necə istifadə etməli

  1. Kateqoriyalara ayrılmış istinad bölmələrinə baxın.
  2. Xüsusi əmrləri və ya sintaksisi tapmaq üçün axtarış çubuğundan istifadə edin.
  3. İstifadə nümunələrini və izahatlarını görmək üçün hər hansı bir girişə klikləyin.
  4. Terminalınızda və ya redaktorunuzda istifadə etmək üçün birbaşa əmrləri kopyalayın.

Tez-tez verilən suallar

Bu arayış aktualdır?
İstinad versiyalar arasında sabit olan geniş istifadə olunan əmrləri və sintaksisi əhatə edir. Ən son əlavələr və ya versiyaya xas xüsusiyyətlər üçün rəsmi sənədləri yoxlayın.
Mən bunu oflayn istifadə edə bilərəmmi?
Yükləndikdən sonra səhifə internet bağlantısı olmadan işləyir. Tez daxil olmaq üçün onu əlfəcin edin — bütün məzmun əlavə şəbəkə sorğuları olmadan brauzerdə göstərilir.
Bu hərtərəfli və ya sadəcə əsasdır?
O, gündəlik işlərin 90%-ni idarə edən ən çox istifadə edilən əmrləri və nümunələri əhatə edir. Niş və ya qabaqcıl xüsusiyyətlər üçün rəsmi sənədlərə müraciət edin.
Əlavələr təklif edə bilərəmmi?
Biz mütəmadi olaraq istinadlarımızı yeniləyirik. Əgər çatışmayan əmrləri görsəniz və ya təklifləriniz varsa, əlaqə səhifəmiz vasitəsilə bizə bildirin.