Ücretsiz Dönüştürücü

Vim Komutları Kopya Kağıdı

Kapsamlı Vim komut hile sayfası. Örnekler, açıklamalar ve tek tıklamayla kopyayla 80'den fazla temel Vim komutunu arayın.

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

Bu araç hakkında

Vim komutları için kapsamlı bir hızlı başvuru kılavuzu. Yaygın olarak kullanılan komutlara, sözdizimine ve kategoriye göre düzenlenmiş örneklere göz atın. Aranabilir ve mobil uyumlu — hızlı bir hatırlatmaya ihtiyaç duyduğunuzda anında erişim için bu sayfayı favorilerinize ekleyin.

Nasıl kullanılır

  1. Kategorize edilmiş referans bölümlerine göz atın.
  2. Belirli komutları veya söz dizimini bulmak için arama çubuğunu kullanın.
  3. Kullanım örneklerini ve açıklamalarını görmek için herhangi bir girişe tıklayın.
  4. Terminalinizde veya düzenleyicinizde kullanmak için komutları doğrudan kopyalayın.

Sık sorulan sorular

Bu referans güncel mi?
Referans, yaygın olarak kullanılan komutları ve sürümler arasında kararlı olan sözdizimini kapsar. En son eklemeler veya sürüme özgü özellikler için resmi belgelere bakın.
Bunu çevrimdışı kullanabilir miyim?
Sayfa yüklendikten sonra internet bağlantısı olmadan çalışır. Hızlı erişim için yer imlerine ekleyin; tüm içerik, başka ağ istekleri olmadan tarayıcıda oluşturulur.
Bu kapsamlı mı yoksa sadece temel bilgiler mi?
Günlük görevlerin %90'ını gerçekleştiren en sık kullanılan komutları ve kalıpları kapsar. Niş veya gelişmiş özellikler için resmi belgelere bakın.
İlaveler önerebilir miyim?
Referanslarımızı düzenli olarak güncelliyoruz. Eksik komutları fark ederseniz veya önerileriniz varsa iletişim sayfamızdan bize bildirin.