Chuyển đổi miễn phí
Lệnh Vim Bảng gian lận
Bảng cheat lệnh Vim toàn diện. Tìm kiếm hơn 80 lệnh Vim cần thiết kèm theo ví dụ, mô tả và sao chép chỉ bằng một cú nhấp chuột.
i
Enter Insert mode before the cursor
Ví dụ:
iI
Enter Insert mode at the beginning of the line
Ví dụ:
Ia
Enter Insert mode after the cursor
Ví dụ:
aA
Enter Insert mode at the end of the line
Ví dụ:
Ao
Open a new line below and enter Insert mode
Ví dụ:
oO
Open a new line above and enter Insert mode
Ví dụ:
Ov
Enter Visual mode (character selection)
Ví dụ:
vV
Enter Visual Line mode (line selection)
Ví dụ:
VCtrl+v
Enter Visual Block mode (column selection)
Ví dụ:
Ctrl+v:
Enter Command-line mode
Ví dụ:
:wEsc
Return to Normal mode from any mode
Ví dụ:
EscR
Enter Replace mode (overwrite characters)
Ví dụ:
Rh
Move cursor left
Ví dụ:
5hj
Move cursor down
Ví dụ:
10jk
Move cursor up
Ví dụ:
10kl
Move cursor right
Ví dụ:
5lw
Move to the start of the next word
Ví dụ:
3wb
Move to the start of the previous word
Ví dụ:
3be
Move to the end of the current word
Ví dụ:
2e0
Move to the beginning of the line
Ví dụ:
0^
Move to the first non-blank character of the line
Ví dụ:
^$
Move to the end of the line
Ví dụ:
$gg
Move to the first line of the file
Ví dụ:
ggG
Move to the last line of the file
Ví dụ:
G:N
Jump to line number N
Ví dụ:
:42Ctrl+f
Scroll forward (down) one screen
Ví dụ:
Ctrl+fCtrl+b
Scroll backward (up) one screen
Ví dụ:
Ctrl+bCtrl+d
Scroll down half a screen
Ví dụ:
Ctrl+dCtrl+u
Scroll up half a screen
Ví dụ:
Ctrl+uH
Move cursor to the top of the screen
Ví dụ:
HM
Move cursor to the middle of the screen
Ví dụ:
ML
Move cursor to the bottom of the screen
Ví dụ:
L%
Jump to matching bracket, parenthesis, or brace
Ví dụ:
%x
Delete the character under the cursor
Ví dụ:
xdd
Delete (cut) the current line
Ví dụ:
dddw
Delete from cursor to the end of the word
Ví dụ:
dwd$
Delete from cursor to the end of the line
Ví dụ:
d$D
Delete from cursor to end of line (same as d$)
Ví dụ:
Dyy
Yank (copy) the current line
Ví dụ:
yyyw
Yank (copy) from cursor to end of word
Ví dụ:
ywp
Paste after the cursor
Ví dụ:
pP
Paste before the cursor
Ví dụ:
Pu
Undo the last change
Ví dụ:
uCtrl+r
Redo the last undone change
Ví dụ:
Ctrl+rcc
Change (delete and enter insert mode) the current line
Ví dụ:
cccw
Change from cursor to end of word
Ví dụ:
cwc$
Change from cursor to end of line
Ví dụ:
c$.
Repeat the last change
Ví dụ:
.>>
Indent the current line one level to the right
Ví dụ:
>><<
Unindent the current line one level to the left
Ví dụ:
<<==
Auto-indent the current line
Ví dụ:
==J
Join the current line with the line below
Ví dụ:
J~
Toggle case of character under cursor
Ví dụ:
~r{char}
Replace the character under the cursor with {char}
Ví dụ:
ra/{pattern}
Search forward for pattern
Ví dụ:
/foo?{pattern}
Search backward for pattern
Ví dụ:
?foon
Repeat the last search in the same direction
Ví dụ:
nN
Repeat the last search in the opposite direction
Ví dụ:
N*
Search forward for the word under the cursor
Ví dụ:
*#
Search backward for the word under the cursor
Ví dụ:
#:s/old/new/g
Replace all occurrences of old with new on the current line
Ví dụ:
:s/foo/bar/g:%s/old/new/g
Replace all occurrences of old with new in the whole file
Ví dụ:
:%s/foo/bar/g:%s/old/new/gc
Replace all with confirmation prompts
Ví dụ:
:%s/foo/bar/gc:noh
Clear the search highlight
Ví dụ:
:noh:w
Save the current file
Ví dụ:
:w:w filename
Save the current buffer as a new filename
Ví dụ:
:w newfile.txt:q
Quit (close the window)
Ví dụ:
:q:wq
Save and quit
Ví dụ:
:wq:q!
Quit without saving (force quit)
Ví dụ:
:q!:x
Save and quit (only writes if changes were made)
Ví dụ:
:x:e filename
Open a file for editing
Ví dụ:
:e README.md:sp
Split the window horizontally
Ví dụ:
:sp file.txt:vsp
Split the window vertically
Ví dụ:
:vsp file.txtCtrl+w+w
Switch focus to the next split window
Ví dụ:
Ctrl+w wCtrl+w+h/j/k/l
Move focus to the window in the given direction
Ví dụ:
Ctrl+w l:close
Close the current window split
Ví dụ:
:close:only
Close all windows except the current one
Ví dụ:
:only:bn
Switch to the next buffer
Ví dụ:
:bn:bp
Switch to the previous buffer
Ví dụ:
:bp:bd
Delete (close) the current buffer
Ví dụ:
:bd:ls
List all open buffers
Ví dụ:
:ls:b N
Switch to buffer number N
Ví dụ:
:b 2:tabnew
Open a new tab
Ví dụ:
:tabnew file.txt:tabn
Switch to the next tab
Ví dụ:
:tabn:tabp
Switch to the previous tab
Ví dụ:
:tabp:tabclose
Close the current tab
Ví dụ:
:tabclosegt
Go to the next tab
Ví dụ:
gtgT
Go to the previous tab
Ví dụ:
gTq{a-z}
Start recording a macro into register {a-z}
Ví dụ:
qqq (stop)
Stop recording the current macro
Ví dụ:
q@{a-z}
Execute the macro stored in register {a-z}
Ví dụ:
@q@@
Repeat the last executed macro
Ví dụ:
@@N@{a-z}
Execute macro N times
Ví dụ:
5@q:reg
Show the contents of all registers
Ví dụ:
:regv then d
Select text in Visual mode then delete it
Ví dụ:
vwdv then y
Select text in Visual mode then yank (copy) it
Ví dụ:
vwyv then c
Select text in Visual mode then change it
Ví dụ:
vwcv then >
Indent selected text to the right
Ví dụ:
vip>vip
Select the current paragraph in Visual mode
Ví dụ:
vipviw
Select the current word in Visual mode
Ví dụ:
viwvis
Select the current sentence in Visual mode
Ví dụ:
visV then J
Select lines in Visual Line mode then join them
Ví dụ:
VjJ:set number
Show line numbers
Ví dụ:
:set number:set nonumber
Hide line numbers
Ví dụ:
:set nonumber:syntax on
Enable syntax highlighting
Ví dụ:
:syntax on:colorscheme
Change the color scheme
Ví dụ:
:colorscheme desert:help {topic}
Open Vim help for a topic
Ví dụ:
:help :wm{a-z}
Set a mark at the current cursor position
Ví dụ:
ma'{a-z}
Jump to the line of a mark
Ví dụ:
'a`{a-z}
Jump to the exact position of a mark
Ví dụ:
`a:set paste
Enable paste mode to avoid auto-indent issues
Ví dụ:
:set paste:set ignorecase
Make searches case-insensitive
Ví dụ:
:set ignorecase:set hlsearch
Highlight all search matches
Ví dụ:
:set hlsearchga
Show the ASCII value of the character under the cursor
Ví dụ:
gazz
Center the current line on the screen
Ví dụ:
zzCtrl+g
Show the current file name and cursor position
Ví dụ:
Ctrl+gCông Cụ Liên Quan
Xem tất cả công cụLệnh Git Bảng gian lận
Bảng cheat lệnh Git toàn diện. Tìm kiếm hơn 80 lệnh Git cần thiết kèm theo ví dụ, mô tả và bản sao chỉ bằng một cú nhấp chuột.
Lệnh Docker Bảng gian lận
Bảng cheat lệnh Docker toàn diện. Tìm kiếm hơn 70 lệnh Docker cần thiết kèm theo ví dụ, mô tả và sao chép bằng một cú nhấp chuột.
Linux / Bash Bảng lệnh gian lận
Bảng cheat lệnh Linux và Bash toàn diện. Tìm kiếm hơn 80 lệnh cần thiết kèm theo ví dụ, mô tả và sao chép bằng một cú nhấp chuột.
Trình định dạng SQL & Làm đẹp
Định dạng, làm đẹp và dọn dẹp các truy vấn SQL ngay lập tức trong trình duyệt của bạn. Không cần tải lên - hoàn toàn riêng tư và miễn phí.