ממיר חינם
פקודות Vim Cheat Sheet
גיליון הונאה של פקודות Vim מקיף. חפש ב-80+ פקודות Vim חיוניות עם דוגמאות, תיאורים והעתקה בלחיצה אחת.
i
Enter Insert mode before the cursor
דוגמה:
iI
Enter Insert mode at the beginning of the line
דוגמה:
Ia
Enter Insert mode after the cursor
דוגמה:
aA
Enter Insert mode at the end of the line
דוגמה:
Ao
Open a new line below and enter Insert mode
דוגמה:
oO
Open a new line above and enter Insert mode
דוגמה:
Ov
Enter Visual mode (character selection)
דוגמה:
vV
Enter Visual Line mode (line selection)
דוגמה:
VCtrl+v
Enter Visual Block mode (column selection)
דוגמה:
Ctrl+v:
Enter Command-line mode
דוגמה:
:wEsc
Return to Normal mode from any mode
דוגמה:
EscR
Enter Replace mode (overwrite characters)
דוגמה:
Rh
Move cursor left
דוגמה:
5hj
Move cursor down
דוגמה:
10jk
Move cursor up
דוגמה:
10kl
Move cursor right
דוגמה:
5lw
Move to the start of the next word
דוגמה:
3wb
Move to the start of the previous word
דוגמה:
3be
Move to the end of the current word
דוגמה:
2e0
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
דוגמה:
ggG
Move to the last line of the file
דוגמה:
G:N
Jump to line number N
דוגמה:
:42Ctrl+f
Scroll forward (down) one screen
דוגמה:
Ctrl+fCtrl+b
Scroll backward (up) one screen
דוגמה:
Ctrl+bCtrl+d
Scroll down half a screen
דוגמה:
Ctrl+dCtrl+u
Scroll up half a screen
דוגמה:
Ctrl+uH
Move cursor to the top of the screen
דוגמה:
HM
Move cursor to the middle of the screen
דוגמה:
ML
Move cursor to the bottom of the screen
דוגמה:
L%
Jump to matching bracket, parenthesis, or brace
דוגמה:
%x
Delete the character under the cursor
דוגמה:
xdd
Delete (cut) the current line
דוגמה:
dddw
Delete from cursor to the end of the word
דוגמה:
dwd$
Delete from cursor to the end of the line
דוגמה:
d$D
Delete from cursor to end of line (same as d$)
דוגמה:
Dyy
Yank (copy) the current line
דוגמה:
yyyw
Yank (copy) from cursor to end of word
דוגמה:
ywp
Paste after the cursor
דוגמה:
pP
Paste before the cursor
דוגמה:
Pu
Undo the last change
דוגמה:
uCtrl+r
Redo the last undone change
דוגמה:
Ctrl+rcc
Change (delete and enter insert mode) the current line
דוגמה:
cccw
Change from cursor to end of word
דוגמה:
cwc$
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
דוגמה:
?foon
Repeat the last search in the same direction
דוגמה:
nN
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.txtCtrl+w+w
Switch focus to the next split window
דוגמה:
Ctrl+w wCtrl+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
דוגמה:
:tabclosegt
Go to the next tab
דוגמה:
gtgT
Go to the previous tab
דוגמה:
gTq{a-z}
Start recording a macro into register {a-z}
דוגמה:
qqq (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
דוגמה:
:regv then d
Select text in Visual mode then delete it
דוגמה:
vwdv then y
Select text in Visual mode then yank (copy) it
דוגמה:
vwyv then c
Select text in Visual mode then change it
דוגמה:
vwcv then >
Indent selected text to the right
דוגמה:
vip>vip
Select the current paragraph in Visual mode
דוגמה:
vipviw
Select the current word in Visual mode
דוגמה:
viwvis
Select the current sentence in Visual mode
דוגמה:
visV 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 :wm{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 hlsearchga
Show the ASCII value of the character under the cursor
דוגמה:
gazz
Center the current line on the screen
דוגמה:
zzCtrl+g
Show the current file name and cursor position
דוגמה:
Ctrl+gכלים קשורים
הצג את כל הכליםGit Commands Cheat Sheet
גיליון הונאה של פקודות Git. חפש ב-80+ פקודות Git חיוניות עם דוגמאות, תיאורים והעתקה בלחיצה אחת.
פקודות דוקר Cheat Sheet
גיליון הונאה של פקודות Docker מקיף. חפש ב-70+ פקודות Docker חיוניות עם דוגמאות, תיאורים והעתקה בלחיצה אחת.
לינוקס/באש דף רמות פקודות
גיליון רמאות מקיף של לינוקס ו-Bash. חפש יותר מ-80 פקודות חיוניות עם דוגמאות, תיאורים והעתקה בלחיצה אחת.
מעצב SQL & מייפה
עיצוב, יפות ונקה שאילתות SQL באופן מיידי בדפדפן שלך. אין צורך בהעלאה - פרטי לחלוטין ובחינם.