Konverter Gratis
Perintah Vim Lembar Contekan
Lembar contekan perintah Vim yang komprehensif. Cari 80+ perintah Vim penting dengan contoh, deskripsi, dan salin satu klik.
i
Enter Insert mode before the cursor
Contoh:
iI
Enter Insert mode at the beginning of the line
Contoh:
Ia
Enter Insert mode after the cursor
Contoh:
aA
Enter Insert mode at the end of the line
Contoh:
Ao
Open a new line below and enter Insert mode
Contoh:
oO
Open a new line above and enter Insert mode
Contoh:
Ov
Enter Visual mode (character selection)
Contoh:
vV
Enter Visual Line mode (line selection)
Contoh:
VCtrl+v
Enter Visual Block mode (column selection)
Contoh:
Ctrl+v:
Enter Command-line mode
Contoh:
:wEsc
Return to Normal mode from any mode
Contoh:
EscR
Enter Replace mode (overwrite characters)
Contoh:
Rh
Move cursor left
Contoh:
5hj
Move cursor down
Contoh:
10jk
Move cursor up
Contoh:
10kl
Move cursor right
Contoh:
5lw
Move to the start of the next word
Contoh:
3wb
Move to the start of the previous word
Contoh:
3be
Move to the end of the current word
Contoh:
2e0
Move to the beginning of the line
Contoh:
0^
Move to the first non-blank character of the line
Contoh:
^$
Move to the end of the line
Contoh:
$gg
Move to the first line of the file
Contoh:
ggG
Move to the last line of the file
Contoh:
G:N
Jump to line number N
Contoh:
:42Ctrl+f
Scroll forward (down) one screen
Contoh:
Ctrl+fCtrl+b
Scroll backward (up) one screen
Contoh:
Ctrl+bCtrl+d
Scroll down half a screen
Contoh:
Ctrl+dCtrl+u
Scroll up half a screen
Contoh:
Ctrl+uH
Move cursor to the top of the screen
Contoh:
HM
Move cursor to the middle of the screen
Contoh:
ML
Move cursor to the bottom of the screen
Contoh:
L%
Jump to matching bracket, parenthesis, or brace
Contoh:
%x
Delete the character under the cursor
Contoh:
xdd
Delete (cut) the current line
Contoh:
dddw
Delete from cursor to the end of the word
Contoh:
dwd$
Delete from cursor to the end of the line
Contoh:
d$D
Delete from cursor to end of line (same as d$)
Contoh:
Dyy
Yank (copy) the current line
Contoh:
yyyw
Yank (copy) from cursor to end of word
Contoh:
ywp
Paste after the cursor
Contoh:
pP
Paste before the cursor
Contoh:
Pu
Undo the last change
Contoh:
uCtrl+r
Redo the last undone change
Contoh:
Ctrl+rcc
Change (delete and enter insert mode) the current line
Contoh:
cccw
Change from cursor to end of word
Contoh:
cwc$
Change from cursor to end of line
Contoh:
c$.
Repeat the last change
Contoh:
.>>
Indent the current line one level to the right
Contoh:
>><<
Unindent the current line one level to the left
Contoh:
<<==
Auto-indent the current line
Contoh:
==J
Join the current line with the line below
Contoh:
J~
Toggle case of character under cursor
Contoh:
~r{char}
Replace the character under the cursor with {char}
Contoh:
ra/{pattern}
Search forward for pattern
Contoh:
/foo?{pattern}
Search backward for pattern
Contoh:
?foon
Repeat the last search in the same direction
Contoh:
nN
Repeat the last search in the opposite direction
Contoh:
N*
Search forward for the word under the cursor
Contoh:
*#
Search backward for the word under the cursor
Contoh:
#:s/old/new/g
Replace all occurrences of old with new on the current line
Contoh:
:s/foo/bar/g:%s/old/new/g
Replace all occurrences of old with new in the whole file
Contoh:
:%s/foo/bar/g:%s/old/new/gc
Replace all with confirmation prompts
Contoh:
:%s/foo/bar/gc:noh
Clear the search highlight
Contoh:
:noh:w
Save the current file
Contoh:
:w:w filename
Save the current buffer as a new filename
Contoh:
:w newfile.txt:q
Quit (close the window)
Contoh:
:q:wq
Save and quit
Contoh:
:wq:q!
Quit without saving (force quit)
Contoh:
:q!:x
Save and quit (only writes if changes were made)
Contoh:
:x:e filename
Open a file for editing
Contoh:
:e README.md:sp
Split the window horizontally
Contoh:
:sp file.txt:vsp
Split the window vertically
Contoh:
:vsp file.txtCtrl+w+w
Switch focus to the next split window
Contoh:
Ctrl+w wCtrl+w+h/j/k/l
Move focus to the window in the given direction
Contoh:
Ctrl+w l:close
Close the current window split
Contoh:
:close:only
Close all windows except the current one
Contoh:
:only:bn
Switch to the next buffer
Contoh:
:bn:bp
Switch to the previous buffer
Contoh:
:bp:bd
Delete (close) the current buffer
Contoh:
:bd:ls
List all open buffers
Contoh:
:ls:b N
Switch to buffer number N
Contoh:
:b 2:tabnew
Open a new tab
Contoh:
:tabnew file.txt:tabn
Switch to the next tab
Contoh:
:tabn:tabp
Switch to the previous tab
Contoh:
:tabp:tabclose
Close the current tab
Contoh:
:tabclosegt
Go to the next tab
Contoh:
gtgT
Go to the previous tab
Contoh:
gTq{a-z}
Start recording a macro into register {a-z}
Contoh:
qqq (stop)
Stop recording the current macro
Contoh:
q@{a-z}
Execute the macro stored in register {a-z}
Contoh:
@q@@
Repeat the last executed macro
Contoh:
@@N@{a-z}
Execute macro N times
Contoh:
5@q:reg
Show the contents of all registers
Contoh:
:regv then d
Select text in Visual mode then delete it
Contoh:
vwdv then y
Select text in Visual mode then yank (copy) it
Contoh:
vwyv then c
Select text in Visual mode then change it
Contoh:
vwcv then >
Indent selected text to the right
Contoh:
vip>vip
Select the current paragraph in Visual mode
Contoh:
vipviw
Select the current word in Visual mode
Contoh:
viwvis
Select the current sentence in Visual mode
Contoh:
visV then J
Select lines in Visual Line mode then join them
Contoh:
VjJ:set number
Show line numbers
Contoh:
:set number:set nonumber
Hide line numbers
Contoh:
:set nonumber:syntax on
Enable syntax highlighting
Contoh:
:syntax on:colorscheme
Change the color scheme
Contoh:
:colorscheme desert:help {topic}
Open Vim help for a topic
Contoh:
:help :wm{a-z}
Set a mark at the current cursor position
Contoh:
ma'{a-z}
Jump to the line of a mark
Contoh:
'a`{a-z}
Jump to the exact position of a mark
Contoh:
`a:set paste
Enable paste mode to avoid auto-indent issues
Contoh:
:set paste:set ignorecase
Make searches case-insensitive
Contoh:
:set ignorecase:set hlsearch
Highlight all search matches
Contoh:
:set hlsearchga
Show the ASCII value of the character under the cursor
Contoh:
gazz
Center the current line on the screen
Contoh:
zzCtrl+g
Show the current file name and cursor position
Contoh:
Ctrl+gAlat Terkait
Lihat semua alatPerintah Git Lembar Contekan
Lembar contekan perintah Git yang komprehensif. Cari 80+ perintah Git penting dengan contoh, deskripsi, dan salin satu klik.
Perintah Docker Lembar Contekan
Lembar contekan perintah Docker yang komprehensif. Cari 70+ perintah Docker penting dengan contoh, deskripsi, dan salin satu klik.
Linux / Bash Lembar Referensi Perintah
Lembar referensi perintah Linux dan Bash yang komprehensif. Cari 80+ perintah penting dengan contoh, deskripsi, dan salin sekali klik.
Kueri SQL Pemformat & Penyorot
Format, percantik, dan sorot sintaks kueri SQL secara instan di browser Anda. Gratis, aman, tanpa perlu unggah.