ነጻ መለወጫ

የቪም ትዕዛዞች የማጭበርበር ወረቀት

አጠቃላይ የቪም ትዕዛዝ ማጭበርበር ሉህ። 80+ አስፈላጊ የቪም ትዕዛዞችን በምሳሌዎች፣ መግለጫዎች እና በአንድ ጠቅታ ቅጂ ይፈልጉ።

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

ስላዚህ መሳሪያ

A comprehensive quick-reference guide for vim commands. በብዛት ጥቅም ላይ የዋሉ ትዕዛዞችን፣ አገባቦችን እና በምድብ የተደራጁ ምሳሌዎችን ያስሱ። መፈለግ የሚችል እና ለሞባይል ተስማሚ — ፈጣን አስታዋሽ በሚፈልጉበት ጊዜ ለፈጣን መዳረሻ ይህን ገጽ ዕልባት ያድርጉ።

እንዴት ይጠቀሙ

  1. የተመደቡትን የማጣቀሻ ክፍሎችን ያስሱ.
  2. የተወሰኑ ትዕዛዞችን ወይም አገባብ ለማግኘት የፍለጋ አሞሌውን ይጠቀሙ።
  3. የአጠቃቀም ምሳሌዎችን እና ማብራሪያዎችን ለማየት በማንኛውም ግቤት ላይ ጠቅ ያድርጉ።
  4. በእርስዎ ተርሚናል ወይም አርታዒ ውስጥ ለመጠቀም ትዕዛዞችን በቀጥታ ይቅዱ።

በተደጋጋሚ የሚጠየቁ ጥያቄዎች

ይህ ማጣቀሻ ወቅታዊ ነው?
ማመሳከሪያው በሰፊው ጥቅም ላይ የዋሉ ትዕዛዞችን እና በሁሉም ስሪቶች ላይ የተረጋጋ አገባብ ይሸፍናል። ለቅርብ ጊዜ ተጨማሪዎች ወይም ስሪት-ተኮር ባህሪያት ኦፊሴላዊውን ሰነድ ያረጋግጡ።
ይህንን ከመስመር ውጭ መጠቀም እችላለሁ?
አንዴ ከተጫነ ገጹ ያለበይነመረብ ግንኙነት ይሰራል። ለፈጣን መዳረሻ ዕልባት ያድርጉበት - ሁሉም ይዘቶች ያለ ተጨማሪ የአውታረ መረብ ጥያቄዎች በአሳሹ ውስጥ ተሰጥተዋል።
ይህ ሁሉን አቀፍ ነው ወይስ መሰረታዊ ነገሮች?
90% የእለት ተእለት ተግባራትን የሚያስተናግዱ በጣም በብዛት ጥቅም ላይ የዋሉ ትዕዛዞችን እና ቅጦችን ይሸፍናል። ለላቁ ወይም የላቁ ባህሪያት ኦፊሴላዊውን ሰነድ ያማክሩ።
ተጨማሪዎችን መጠቆም እችላለሁ?
ማጣቀሻዎቻችንን በየጊዜው እናዘምነዋለን። የጎደሉ ትዕዛዞችን ካስተዋሉ ወይም ጥቆማዎች ካሉዎት በአድራሻ ገጻችን በኩል ያሳውቁን።