मोफत कनवर्टर

विम कमांड्स फसवणूक पत्रक

व्यापक विम कमांड चीट शीट. उदाहरणे, वर्णन आणि एक-क्लिक कॉपीसह 80+ आवश्यक Vim कमांड शोधा.

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

या साधनाबद्दल

विम कमांडसाठी सर्वसमावेशक द्रुत-संदर्भ मार्गदर्शक. सामान्यतः वापरल्या जाणाऱ्या आदेश, वाक्यरचना आणि वर्गवारीनुसार आयोजित केलेली उदाहरणे ब्राउझ करा. शोधण्यायोग्य आणि मोबाइल-अनुकूल — जेव्हा आपल्याला द्रुत स्मरणपत्राची आवश्यकता असेल तेव्हा त्वरित प्रवेशासाठी हे पृष्ठ बुकमार्क करा.

कसे वापरावे

  1. वर्गीकृत संदर्भ विभाग ब्राउझ करा.
  2. विशिष्ट आदेश किंवा वाक्यरचना शोधण्यासाठी शोध बार वापरा.
  3. वापर उदाहरणे आणि स्पष्टीकरणे पाहण्यासाठी कोणत्याही एंट्रीवर क्लिक करा.
  4. तुमच्या टर्मिनल किंवा एडिटरमध्ये वापरण्यासाठी थेट कमांड कॉपी करा.

वारंवार विचारले जाणारे प्रश्न

हा संदर्भ अद्ययावत आहे का?
संदर्भामध्ये मोठ्या प्रमाणात वापरल्या जाणाऱ्या कमांड्स आणि सिंटॅक्स समाविष्ट आहेत जे आवृत्त्यांमध्ये स्थिर आहेत. नवीनतम जोडण्या किंवा आवृत्ती-विशिष्ट वैशिष्ट्यांसाठी, अधिकृत दस्तऐवजीकरण तपासा.
मी हे ऑफलाइन वापरू शकतो का?
एकदा लोड झाल्यानंतर, पृष्ठ इंटरनेट कनेक्शनशिवाय कार्य करते. द्रुत प्रवेशासाठी ते बुकमार्क करा — पुढील नेटवर्क विनंत्यांशिवाय सर्व सामग्री ब्राउझरमध्ये प्रस्तुत केली जाते.
हे सर्वसमावेशक आहे की फक्त मूलभूत आहे?
हे सर्वात सामान्यपणे वापरल्या जाणाऱ्या आज्ञा आणि नमुने समाविष्ट करते जे दररोजच्या 90% कार्ये हाताळतात. विशिष्ट किंवा प्रगत वैशिष्ट्यांसाठी, अधिकृत दस्तऐवजीकरण पहा.
मी जोड सुचवू शकतो का?
आम्ही नियमितपणे आमचे संदर्भ अद्यतनित करतो. तुम्हाला गहाळ कमांड दिसल्यास किंवा सूचना असल्यास, आमच्या संपर्क पृष्ठाद्वारे आम्हाला कळवा.