Bezmaksas pārveidotājs
Vim komandas Apkrāptu lapa
Visaptveroša Vim komandu apkrāpšanas lapa. Meklējiet 80+ būtiskās Vim komandas ar piemēriem, aprakstiem un viena klikšķa kopiju.
i
Enter Insert mode before the cursor
Piemērs:
iI
Enter Insert mode at the beginning of the line
Piemērs:
Ia
Enter Insert mode after the cursor
Piemērs:
aA
Enter Insert mode at the end of the line
Piemērs:
Ao
Open a new line below and enter Insert mode
Piemērs:
oO
Open a new line above and enter Insert mode
Piemērs:
Ov
Enter Visual mode (character selection)
Piemērs:
vV
Enter Visual Line mode (line selection)
Piemērs:
VCtrl+v
Enter Visual Block mode (column selection)
Piemērs:
Ctrl+v:
Enter Command-line mode
Piemērs:
:wEsc
Return to Normal mode from any mode
Piemērs:
EscR
Enter Replace mode (overwrite characters)
Piemērs:
Rh
Move cursor left
Piemērs:
5hj
Move cursor down
Piemērs:
10jk
Move cursor up
Piemērs:
10kl
Move cursor right
Piemērs:
5lw
Move to the start of the next word
Piemērs:
3wb
Move to the start of the previous word
Piemērs:
3be
Move to the end of the current word
Piemērs:
2e0
Move to the beginning of the line
Piemērs:
0^
Move to the first non-blank character of the line
Piemērs:
^$
Move to the end of the line
Piemērs:
$gg
Move to the first line of the file
Piemērs:
ggG
Move to the last line of the file
Piemērs:
G:N
Jump to line number N
Piemērs:
:42Ctrl+f
Scroll forward (down) one screen
Piemērs:
Ctrl+fCtrl+b
Scroll backward (up) one screen
Piemērs:
Ctrl+bCtrl+d
Scroll down half a screen
Piemērs:
Ctrl+dCtrl+u
Scroll up half a screen
Piemērs:
Ctrl+uH
Move cursor to the top of the screen
Piemērs:
HM
Move cursor to the middle of the screen
Piemērs:
ML
Move cursor to the bottom of the screen
Piemērs:
L%
Jump to matching bracket, parenthesis, or brace
Piemērs:
%x
Delete the character under the cursor
Piemērs:
xdd
Delete (cut) the current line
Piemērs:
dddw
Delete from cursor to the end of the word
Piemērs:
dwd$
Delete from cursor to the end of the line
Piemērs:
d$D
Delete from cursor to end of line (same as d$)
Piemērs:
Dyy
Yank (copy) the current line
Piemērs:
yyyw
Yank (copy) from cursor to end of word
Piemērs:
ywp
Paste after the cursor
Piemērs:
pP
Paste before the cursor
Piemērs:
Pu
Undo the last change
Piemērs:
uCtrl+r
Redo the last undone change
Piemērs:
Ctrl+rcc
Change (delete and enter insert mode) the current line
Piemērs:
cccw
Change from cursor to end of word
Piemērs:
cwc$
Change from cursor to end of line
Piemērs:
c$.
Repeat the last change
Piemērs:
.>>
Indent the current line one level to the right
Piemērs:
>><<
Unindent the current line one level to the left
Piemērs:
<<==
Auto-indent the current line
Piemērs:
==J
Join the current line with the line below
Piemērs:
J~
Toggle case of character under cursor
Piemērs:
~r{char}
Replace the character under the cursor with {char}
Piemērs:
ra/{pattern}
Search forward for pattern
Piemērs:
/foo?{pattern}
Search backward for pattern
Piemērs:
?foon
Repeat the last search in the same direction
Piemērs:
nN
Repeat the last search in the opposite direction
Piemērs:
N*
Search forward for the word under the cursor
Piemērs:
*#
Search backward for the word under the cursor
Piemērs:
#:s/old/new/g
Replace all occurrences of old with new on the current line
Piemērs:
:s/foo/bar/g:%s/old/new/g
Replace all occurrences of old with new in the whole file
Piemērs:
:%s/foo/bar/g:%s/old/new/gc
Replace all with confirmation prompts
Piemērs:
:%s/foo/bar/gc:noh
Clear the search highlight
Piemērs:
:noh:w
Save the current file
Piemērs:
:w:w filename
Save the current buffer as a new filename
Piemērs:
:w newfile.txt:q
Quit (close the window)
Piemērs:
:q:wq
Save and quit
Piemērs:
:wq:q!
Quit without saving (force quit)
Piemērs:
:q!:x
Save and quit (only writes if changes were made)
Piemērs:
:x:e filename
Open a file for editing
Piemērs:
:e README.md:sp
Split the window horizontally
Piemērs:
:sp file.txt:vsp
Split the window vertically
Piemērs:
:vsp file.txtCtrl+w+w
Switch focus to the next split window
Piemērs:
Ctrl+w wCtrl+w+h/j/k/l
Move focus to the window in the given direction
Piemērs:
Ctrl+w l:close
Close the current window split
Piemērs:
:close:only
Close all windows except the current one
Piemērs:
:only:bn
Switch to the next buffer
Piemērs:
:bn:bp
Switch to the previous buffer
Piemērs:
:bp:bd
Delete (close) the current buffer
Piemērs:
:bd:ls
List all open buffers
Piemērs:
:ls:b N
Switch to buffer number N
Piemērs:
:b 2:tabnew
Open a new tab
Piemērs:
:tabnew file.txt:tabn
Switch to the next tab
Piemērs:
:tabn:tabp
Switch to the previous tab
Piemērs:
:tabp:tabclose
Close the current tab
Piemērs:
:tabclosegt
Go to the next tab
Piemērs:
gtgT
Go to the previous tab
Piemērs:
gTq{a-z}
Start recording a macro into register {a-z}
Piemērs:
qqq (stop)
Stop recording the current macro
Piemērs:
q@{a-z}
Execute the macro stored in register {a-z}
Piemērs:
@q@@
Repeat the last executed macro
Piemērs:
@@N@{a-z}
Execute macro N times
Piemērs:
5@q:reg
Show the contents of all registers
Piemērs:
:regv then d
Select text in Visual mode then delete it
Piemērs:
vwdv then y
Select text in Visual mode then yank (copy) it
Piemērs:
vwyv then c
Select text in Visual mode then change it
Piemērs:
vwcv then >
Indent selected text to the right
Piemērs:
vip>vip
Select the current paragraph in Visual mode
Piemērs:
vipviw
Select the current word in Visual mode
Piemērs:
viwvis
Select the current sentence in Visual mode
Piemērs:
visV then J
Select lines in Visual Line mode then join them
Piemērs:
VjJ:set number
Show line numbers
Piemērs:
:set number:set nonumber
Hide line numbers
Piemērs:
:set nonumber:syntax on
Enable syntax highlighting
Piemērs:
:syntax on:colorscheme
Change the color scheme
Piemērs:
:colorscheme desert:help {topic}
Open Vim help for a topic
Piemērs:
:help :wm{a-z}
Set a mark at the current cursor position
Piemērs:
ma'{a-z}
Jump to the line of a mark
Piemērs:
'a`{a-z}
Jump to the exact position of a mark
Piemērs:
`a:set paste
Enable paste mode to avoid auto-indent issues
Piemērs:
:set paste:set ignorecase
Make searches case-insensitive
Piemērs:
:set ignorecase:set hlsearch
Highlight all search matches
Piemērs:
:set hlsearchga
Show the ASCII value of the character under the cursor
Piemērs:
gazz
Center the current line on the screen
Piemērs:
zzCtrl+g
Show the current file name and cursor position
Piemērs:
Ctrl+gSaistītie rīki
Skatīt visus rīkusGit komandas Apkrāptu lapa
Visaptveroša Git komandu apkrāpšanas lapa. Meklējiet vairāk nekā 80 būtisku Git komandu ar piemēriem, aprakstiem un kopiju ar vienu klikšķi.
Docker komandas Apkrāptu lapa
Visaptveroša Docker komandu apkrāpšanas lapa. Meklējiet vairāk nekā 70 būtisku Docker komandu ar piemēriem, aprakstiem un kopiju ar vienu klikšķi.
Linux / Bash Command Cheat Sheet
Visaptveroša Linux un Bash komandu apkrāpšanas lapa. Meklējiet vairāk nekā 80 būtisku komandu ar piemēriem, aprakstiem un kopiju ar vienu klikšķi.
SQL formatētājs & Skaistinātājs
Formatējiet, uzlabojiet un notīriet SQL vaicājumus uzreiz savā pārlūkprogrammā. Nav nepieciešama augšupielāde — pilnīgi privāta un bezmaksas.