મફત કન્વર્ટર

વિમ આદેશો ચીટ શીટ

વ્યાપક વિમ કમાન્ડ ચીટ શીટ. ઉદાહરણો, વર્ણનો અને એક-ક્લિક નકલ સાથે 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

આ ટૂલ વિશે

vim આદેશો માટે વ્યાપક ઝડપી-સંદર્ભ માર્ગદર્શિકા. સામાન્ય રીતે ઉપયોગમાં લેવાતા આદેશો, વાક્યરચના અને કેટેગરી દ્વારા સંગઠિત ઉદાહરણો બ્રાઉઝ કરો. શોધી શકાય તેવું અને મોબાઇલ-ફ્રેંડલી — જ્યારે તમને ઝડપી રીમાઇન્ડરની જરૂર હોય ત્યારે ત્વરિત ઍક્સેસ માટે આ પૃષ્ઠને બુકમાર્ક કરો.

કેવી રીતે વાપરવું

  1. વર્ગીકૃત સંદર્ભ વિભાગોને બ્રાઉઝ કરો.
  2. ચોક્કસ આદેશો અથવા વાક્યરચના શોધવા માટે શોધ બારનો ઉપયોગ કરો.
  3. ઉપયોગના ઉદાહરણો અને સમજૂતીઓ જોવા માટે કોઈપણ એન્ટ્રી પર ક્લિક કરો.
  4. તમારા ટર્મિનલ અથવા એડિટરમાં ઉપયોગ માટે સીધા જ આદેશોની નકલ કરો.

વારંવાર પૂછાતા પ્રશ્નો

શું આ સંદર્ભ અદ્યતન છે?
સંદર્ભ વ્યાપકપણે ઉપયોગમાં લેવાતા આદેશો અને વાક્યરચના આવરી લે છે જે આવૃત્તિઓમાં સ્થિર છે. નવીનતમ ઉમેરાઓ અથવા સંસ્કરણ-વિશિષ્ટ સુવિધાઓ માટે, સત્તાવાર દસ્તાવેજીકરણ તપાસો.
શું હું આનો ઑફલાઇન ઉપયોગ કરી શકું?
એકવાર લોડ થયા પછી, પૃષ્ઠ ઇન્ટરનેટ કનેક્શન વિના કાર્ય કરે છે. ઝડપી ઍક્સેસ માટે તેને બુકમાર્ક કરો — બધી સામગ્રી વધુ નેટવર્ક વિનંતીઓ વિના બ્રાઉઝરમાં રેન્ડર કરવામાં આવે છે.
શું આ વ્યાપક છે અથવા ફક્ત મૂળભૂત છે?
તે સૌથી સામાન્ય રીતે ઉપયોગમાં લેવાતા આદેશો અને પેટર્નને આવરી લે છે જે રોજિંદા કાર્યોના 90% નું સંચાલન કરે છે. વિશિષ્ટ અથવા અદ્યતન સુવિધાઓ માટે, સત્તાવાર દસ્તાવેજોની સલાહ લો.
શું હું ઉમેરાઓ સૂચવી શકું?
અમે નિયમિતપણે અમારા સંદર્ભોને અપડેટ કરીએ છીએ. જો તમને ગુમ થયેલ આદેશો જણાય અથવા સૂચનો હોય, તો અમને અમારા સંપર્ક પૃષ્ઠ દ્વારા જણાવો.