सभी tools
निःशुल्क

एक खोजने योग्य, प्रिंट करने योग्य Vim संदर्भ — मोड, मोशन, एडिटिंग, सर्च और रिप्लेस, विंडो, बफर और रजिस्टर। मुफ्त।

Modes

9
Esc
Return to Normal mode
i / a
Insert before / after the cursor
I / A
Insert at start / end of the line
o / O
Open a new line below / above
v
Visual mode (character selection)
V
Visual line mode
Ctrl-v
Visual block mode (columns)
R
Replace mode (overtype)
:
Command-line (Ex) mode

Motions

10
h j k l
Left, down, up, right
w / b
Forward / back one word
e / ge
End of next / previous word
0 / ^ / $
Line start / first non-blank / line end
gg / G
First line / last line
42G / :42
Jump to line 42
{ / }
Previous / next paragraph
%
Jump to matching bracket
f x / t x
Move to / before next x on the line
Ctrl-d / Ctrl-u
Scroll half page down / up

Editing operators

11
x / X
Delete char under / before cursor
dd / D
Delete line / to end of line
dw / diw
Delete word / inner word
cc / C
Change line / to end of line
ciw / ci"
Change inner word / inside quotes
yy / yw
Yank (copy) line / word
p / P
Paste after / before the cursor
r x / ~
Replace one char / toggle case
u / Ctrl-r
Undo / redo
.
Repeat the last change
>> / <<
Indent / unindent the line

Visual mode

9
v / V
Start character / line selection
Ctrl-v
Start block (column) selection
o
Jump to the other end of the selection
d / y
Delete / yank the selection
c
Change the selection
> / <
Indent / unindent the selection
gu / gU
Lowercase / uppercase the selection
gv
Reselect the last visual selection
I / A
Block insert before / append after (Ctrl-v)

Search & replace

9
/pattern
Search forward for pattern
?pattern
Search backward for pattern
n / N
Next / previous match
* / #
Search word under cursor fwd / back
:%s/old/new/g
Replace all in the file
:%s/old/new/gc
Replace all with confirmation
:s/old/new/g
Replace all on the current line
:%s/\<word\>/x/g
Replace whole words only
:noh
Clear search highlighting

Windows & tabs

8
:sp / :split
Horizontal split
:vsp / :vsplit
Vertical split
Ctrl-w h/j/k/l
Move to the split in that direction
Ctrl-w w
Cycle to the next split
Ctrl-w q / c
Close the current split
Ctrl-w o
Close all other splits
Ctrl-w =
Equalize split sizes
:tabnew / gt / gT
New tab / next / previous tab

Buffers & files

9
:e file
Open / edit a file
:w / :w file
Save / save as
:wq / :x / ZZ
Save and quit
:q / :q!
Quit / quit discarding changes
:ls / :buffers
List open buffers
:b name / :bN
Switch to a buffer by name / number
:bn / :bp
Next / previous buffer
:bd
Delete (close) a buffer
:wa / :qa
Write all / quit all

Registers & marks

8
"ayy
Yank line into register a
"ap
Paste from register a
"+y / "+p
Yank to / paste from system clipboard
:reg
Show register contents
ma
Set mark a at the cursor
`a / 'a
Jump to mark a (exact / line)
``
Jump back to the previous position
:marks
List all marks

Macros

7
qa
Start recording into register a
q
Stop recording
@a
Play back macro a
@@
Repeat the last played macro
5@a
Play macro a five times
:%normal @a
Run macro a on every line
"ap → edit → "ay$
Paste, edit, then re-yank a macro to change it

कोई प्रविष्टि “:q” से मेल नहीं खाती।


Vim चीट शीट के बारे में

यह Vim चीट शीट एडिटर को कॉन्सेप्ट के अनुसार मैप करती है: मोड्स, मोशन्स, एडिटिंग ऑपरेटर, विजुअल मोड, सर्च और रिप्लेस, विंडोज़ और टैब्स, बफर्स और फाइलें, रजिस्टर और मार्क्स, और मैक्रोज़। हर रो एक कीस्ट्रोक या कमांड है जिसके साथ एक-पंक्ति विवरण है कि वह क्या करता है।

Vim मसल मेमोरी को इनाम देता है, और इसे बनाने का सबसे तेज़ तरीका यही है कि जब आपको जरूरत हो तब सही मोशन या ऑपरेटर आपके सामने हो। यह शीट संयोजनीय हिस्सों — ऑपरेटर, मोशन, काउंट — को समूहित रखती है ताकि Vim का व्याकरण एक-एक कीबाइंडिंग याद करने के बजाय दिखाई देता रहे।

यह फ्री है और पूरी तरह क्लाइंट-साइड है: सर्च बॉक्स से हर कीस्ट्रोक लाइव फिल्टर करें, स्टिकी टेबल ऑफ कंटेंट्स से सेक्शनों के बीच जंप करें, किसी Ex कमांड को कॉपी करने के लिए क्लिक करें, और शीट प्रिंट करें — Vim सीखने का क्लासिक तरीका आज भी एक प्रिंटआउट के साथ है।

Vim चीट शीट का उपयोग कैसे करें

  1. अगर आप नए हैं तो Modes सेक्शन से शुरू करें, या सीधे Motions और Editing operators पर जाएं।
  2. delete, replace या macro जैसी कोई क्रिया सर्च करें ताकि पूरी शीट फिल्टर हो जाए।
  3. स्टिकी टेबल ऑफ कंटेंट्स का उपयोग करके Registers & marks या Windows & tabs जैसे सेक्शन पर जाएं।
  4. सर्च-एंड-रिप्लेस पैटर्न जैसे Ex कमांड्स कॉपी करने के लिए किसी कमांड या उसके कॉपी आइकन पर क्लिक करें।
  5. शीट प्रिंट करें और इसे अपने कीबोर्ड के पास रखें जब तक मोशन्स मसल मेमोरी न बन जाएं।

अक्सर पूछे जाने वाले प्रश्न

नौ सेक्शन: मोड्स, मोशन्स, एडिटिंग ऑपरेटर, विजुअल मोड, सर्च और रिप्लेस, विंडोज़ और टैब्स, बफर्स और फाइलें, रजिस्टर और मार्क्स, और मैक्रोज़ — एडिटर की पूरी कार्यशील शब्दावली।

हां। यह शीट Vim के मुख्य व्यवहार — मोड्स, मोशन्स, ऑपरेटर, रजिस्टर, मैक्रोज़ — को कवर करती है, जो Neovim में समान है, इसलिए यह लागू होती है चाहे आप कोई भी चलाएं।

नॉर्मल, इंसर्ट और विजुअल मोड को समझने के लिए पहले Modes सेक्शन पढ़ें, फिर कुछ मोशन्स और ऑपरेटर सीखें। चूंकि Vim कमांड्स संयोजित होते हैं, एक छोटी शब्दावली पहले से ही अधिकांश एडिटिंग कवर कर लेती है।

हां। Print बटन सर्च बार और नेविगेशन हटा देता है और सिर्फ कीस्ट्रोक और विवरण आउटपुट करता है — एक प्रिंटेड Vim चीट शीट आज भी सीखने का क्लासिक तरीका है।

हां, पूरी तरह मुफ्त, आपके ब्राउज़र में सर्च करने योग्य और बिना किसी अकाउंट के प्रिंट करने योग्य।

इसे साझा करें

लोकप्रिय खोजें
vim cheat sheet vim commands list vim shortcuts vim search and replace vim motions reference vim visual mode commands vim macros how to quit vim
मदद चाहिए?
इस टूल में कोई समस्या मिली? हमारी टीम को बताएं।
समस्या की रिपोर्ट करें

इस मुफ़्त टूल को अपनी वेबसाइट पर जोड़ें — नीचे दिया गया कोड कॉपी और पेस्ट करें।