แปลงฟรี
คำสั่งเป็นกลุ่ม แผ่นโกง
แผ่นโกงคำสั่ง Vim ที่ครอบคลุม ค้นหาคำสั่ง Vim ที่จำเป็นมากกว่า 80 รายการพร้อมตัวอย่าง คำอธิบาย และการคัดลอกในคลิกเดียว
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 แผ่นโกง
แผ่นโกงคำสั่ง Git ที่ครอบคลุม ค้นหาคำสั่ง Git ที่จำเป็นกว่า 80 รายการพร้อมตัวอย่าง คำอธิบาย และการคัดลอกในคลิกเดียว
คำสั่งนักเทียบท่า แผ่นโกง
แผ่นโกงคำสั่ง Docker ที่ครอบคลุม ค้นหาคำสั่ง Docker ที่จำเป็นมากกว่า 70 รายการพร้อมตัวอย่าง คำอธิบาย และการคัดลอกในคลิกเดียว
ลินุกซ์ / ทุบตี แผ่นโกงคำสั่ง
แผ่นโกงคำสั่ง Linux และ Bash ที่ครอบคลุม ค้นหาคำสั่งที่จำเป็นมากกว่า 80 รายการพร้อมตัวอย่าง คำอธิบาย และการคัดลอกในคลิกเดียว
ตัวจัดรูปแบบ SQL & บิวตี้ฟายเออร์
จัดรูปแบบ ตกแต่ง และล้างคำสั่ง SQL ทันทีในเบราว์เซอร์ของคุณ ไม่จำเป็นต้องอัปโหลด — เป็นส่วนตัวโดยสมบูรณ์และฟรี