Nemokamas konverteris
Vim komandos Cheat Sheet
Išsamus Vim komandos apgaulės lapas. Ieškokite daugiau nei 80 pagrindinių Vim komandų su pavyzdžiais, aprašymais ir kopija vienu spustelėjimu.
i
Enter Insert mode before the cursor
Pavyzdys:
iI
Enter Insert mode at the beginning of the line
Pavyzdys:
Ia
Enter Insert mode after the cursor
Pavyzdys:
aA
Enter Insert mode at the end of the line
Pavyzdys:
Ao
Open a new line below and enter Insert mode
Pavyzdys:
oO
Open a new line above and enter Insert mode
Pavyzdys:
Ov
Enter Visual mode (character selection)
Pavyzdys:
vV
Enter Visual Line mode (line selection)
Pavyzdys:
VCtrl+v
Enter Visual Block mode (column selection)
Pavyzdys:
Ctrl+v:
Enter Command-line mode
Pavyzdys:
:wEsc
Return to Normal mode from any mode
Pavyzdys:
EscR
Enter Replace mode (overwrite characters)
Pavyzdys:
Rh
Move cursor left
Pavyzdys:
5hj
Move cursor down
Pavyzdys:
10jk
Move cursor up
Pavyzdys:
10kl
Move cursor right
Pavyzdys:
5lw
Move to the start of the next word
Pavyzdys:
3wb
Move to the start of the previous word
Pavyzdys:
3be
Move to the end of the current word
Pavyzdys:
2e0
Move to the beginning of the line
Pavyzdys:
0^
Move to the first non-blank character of the line
Pavyzdys:
^$
Move to the end of the line
Pavyzdys:
$gg
Move to the first line of the file
Pavyzdys:
ggG
Move to the last line of the file
Pavyzdys:
G:N
Jump to line number N
Pavyzdys:
:42Ctrl+f
Scroll forward (down) one screen
Pavyzdys:
Ctrl+fCtrl+b
Scroll backward (up) one screen
Pavyzdys:
Ctrl+bCtrl+d
Scroll down half a screen
Pavyzdys:
Ctrl+dCtrl+u
Scroll up half a screen
Pavyzdys:
Ctrl+uH
Move cursor to the top of the screen
Pavyzdys:
HM
Move cursor to the middle of the screen
Pavyzdys:
ML
Move cursor to the bottom of the screen
Pavyzdys:
L%
Jump to matching bracket, parenthesis, or brace
Pavyzdys:
%x
Delete the character under the cursor
Pavyzdys:
xdd
Delete (cut) the current line
Pavyzdys:
dddw
Delete from cursor to the end of the word
Pavyzdys:
dwd$
Delete from cursor to the end of the line
Pavyzdys:
d$D
Delete from cursor to end of line (same as d$)
Pavyzdys:
Dyy
Yank (copy) the current line
Pavyzdys:
yyyw
Yank (copy) from cursor to end of word
Pavyzdys:
ywp
Paste after the cursor
Pavyzdys:
pP
Paste before the cursor
Pavyzdys:
Pu
Undo the last change
Pavyzdys:
uCtrl+r
Redo the last undone change
Pavyzdys:
Ctrl+rcc
Change (delete and enter insert mode) the current line
Pavyzdys:
cccw
Change from cursor to end of word
Pavyzdys:
cwc$
Change from cursor to end of line
Pavyzdys:
c$.
Repeat the last change
Pavyzdys:
.>>
Indent the current line one level to the right
Pavyzdys:
>><<
Unindent the current line one level to the left
Pavyzdys:
<<==
Auto-indent the current line
Pavyzdys:
==J
Join the current line with the line below
Pavyzdys:
J~
Toggle case of character under cursor
Pavyzdys:
~r{char}
Replace the character under the cursor with {char}
Pavyzdys:
ra/{pattern}
Search forward for pattern
Pavyzdys:
/foo?{pattern}
Search backward for pattern
Pavyzdys:
?foon
Repeat the last search in the same direction
Pavyzdys:
nN
Repeat the last search in the opposite direction
Pavyzdys:
N*
Search forward for the word under the cursor
Pavyzdys:
*#
Search backward for the word under the cursor
Pavyzdys:
#:s/old/new/g
Replace all occurrences of old with new on the current line
Pavyzdys:
:s/foo/bar/g:%s/old/new/g
Replace all occurrences of old with new in the whole file
Pavyzdys:
:%s/foo/bar/g:%s/old/new/gc
Replace all with confirmation prompts
Pavyzdys:
:%s/foo/bar/gc:noh
Clear the search highlight
Pavyzdys:
:noh:w
Save the current file
Pavyzdys:
:w:w filename
Save the current buffer as a new filename
Pavyzdys:
:w newfile.txt:q
Quit (close the window)
Pavyzdys:
:q:wq
Save and quit
Pavyzdys:
:wq:q!
Quit without saving (force quit)
Pavyzdys:
:q!:x
Save and quit (only writes if changes were made)
Pavyzdys:
:x:e filename
Open a file for editing
Pavyzdys:
:e README.md:sp
Split the window horizontally
Pavyzdys:
:sp file.txt:vsp
Split the window vertically
Pavyzdys:
:vsp file.txtCtrl+w+w
Switch focus to the next split window
Pavyzdys:
Ctrl+w wCtrl+w+h/j/k/l
Move focus to the window in the given direction
Pavyzdys:
Ctrl+w l:close
Close the current window split
Pavyzdys:
:close:only
Close all windows except the current one
Pavyzdys:
:only:bn
Switch to the next buffer
Pavyzdys:
:bn:bp
Switch to the previous buffer
Pavyzdys:
:bp:bd
Delete (close) the current buffer
Pavyzdys:
:bd:ls
List all open buffers
Pavyzdys:
:ls:b N
Switch to buffer number N
Pavyzdys:
:b 2:tabnew
Open a new tab
Pavyzdys:
:tabnew file.txt:tabn
Switch to the next tab
Pavyzdys:
:tabn:tabp
Switch to the previous tab
Pavyzdys:
:tabp:tabclose
Close the current tab
Pavyzdys:
:tabclosegt
Go to the next tab
Pavyzdys:
gtgT
Go to the previous tab
Pavyzdys:
gTq{a-z}
Start recording a macro into register {a-z}
Pavyzdys:
qqq (stop)
Stop recording the current macro
Pavyzdys:
q@{a-z}
Execute the macro stored in register {a-z}
Pavyzdys:
@q@@
Repeat the last executed macro
Pavyzdys:
@@N@{a-z}
Execute macro N times
Pavyzdys:
5@q:reg
Show the contents of all registers
Pavyzdys:
:regv then d
Select text in Visual mode then delete it
Pavyzdys:
vwdv then y
Select text in Visual mode then yank (copy) it
Pavyzdys:
vwyv then c
Select text in Visual mode then change it
Pavyzdys:
vwcv then >
Indent selected text to the right
Pavyzdys:
vip>vip
Select the current paragraph in Visual mode
Pavyzdys:
vipviw
Select the current word in Visual mode
Pavyzdys:
viwvis
Select the current sentence in Visual mode
Pavyzdys:
visV then J
Select lines in Visual Line mode then join them
Pavyzdys:
VjJ:set number
Show line numbers
Pavyzdys:
:set number:set nonumber
Hide line numbers
Pavyzdys:
:set nonumber:syntax on
Enable syntax highlighting
Pavyzdys:
:syntax on:colorscheme
Change the color scheme
Pavyzdys:
:colorscheme desert:help {topic}
Open Vim help for a topic
Pavyzdys:
:help :wm{a-z}
Set a mark at the current cursor position
Pavyzdys:
ma'{a-z}
Jump to the line of a mark
Pavyzdys:
'a`{a-z}
Jump to the exact position of a mark
Pavyzdys:
`a:set paste
Enable paste mode to avoid auto-indent issues
Pavyzdys:
:set paste:set ignorecase
Make searches case-insensitive
Pavyzdys:
:set ignorecase:set hlsearch
Highlight all search matches
Pavyzdys:
:set hlsearchga
Show the ASCII value of the character under the cursor
Pavyzdys:
gazz
Center the current line on the screen
Pavyzdys:
zzCtrl+g
Show the current file name and cursor position
Pavyzdys:
Ctrl+gSusiję įrankiai
Peržiūrėti visus įrankiusGit komandos Cheat Sheet
Išsamus Git komandos apgaulės lapas. Ieškokite daugiau nei 80 pagrindinių „Git“ komandų su pavyzdžiais, aprašymais ir kopija vienu spustelėjimu.
Docker komandos Cheat Sheet
Išsamus „Docker“ komandų apgaulės lapas. Ieškokite daugiau nei 70 pagrindinių „Docker“ komandų su pavyzdžiais, aprašymais ir kopijavimo vienu spustelėjimu.
Linux / Bash Command Cheat Sheet
Išsamus „Linux“ ir „Bash“ komandų apgaulės lapas. Ieškokite daugiau nei 80 pagrindinių komandų su pavyzdžiais, aprašymais ir kopija vienu spustelėjimu.
SQL formatuoklis & Gražintuvas
Savo naršyklėje akimirksniu formatuokite, pagražinkite ir išvalykite SQL užklausas. Įkelti nereikia – visiškai privatu ir nemokama.