Ilmainen muunnin
Vim komennot Huijauslehti
Kattava Vim-komentohuijauslehti. Hae yli 80 tärkeästä Vim-komennosta esimerkeillä, kuvauksilla ja yhdellä napsautuksella.
i
Enter Insert mode before the cursor
Esimerkki:
iI
Enter Insert mode at the beginning of the line
Esimerkki:
Ia
Enter Insert mode after the cursor
Esimerkki:
aA
Enter Insert mode at the end of the line
Esimerkki:
Ao
Open a new line below and enter Insert mode
Esimerkki:
oO
Open a new line above and enter Insert mode
Esimerkki:
Ov
Enter Visual mode (character selection)
Esimerkki:
vV
Enter Visual Line mode (line selection)
Esimerkki:
VCtrl+v
Enter Visual Block mode (column selection)
Esimerkki:
Ctrl+v:
Enter Command-line mode
Esimerkki:
:wEsc
Return to Normal mode from any mode
Esimerkki:
EscR
Enter Replace mode (overwrite characters)
Esimerkki:
Rh
Move cursor left
Esimerkki:
5hj
Move cursor down
Esimerkki:
10jk
Move cursor up
Esimerkki:
10kl
Move cursor right
Esimerkki:
5lw
Move to the start of the next word
Esimerkki:
3wb
Move to the start of the previous word
Esimerkki:
3be
Move to the end of the current word
Esimerkki:
2e0
Move to the beginning of the line
Esimerkki:
0^
Move to the first non-blank character of the line
Esimerkki:
^$
Move to the end of the line
Esimerkki:
$gg
Move to the first line of the file
Esimerkki:
ggG
Move to the last line of the file
Esimerkki:
G:N
Jump to line number N
Esimerkki:
:42Ctrl+f
Scroll forward (down) one screen
Esimerkki:
Ctrl+fCtrl+b
Scroll backward (up) one screen
Esimerkki:
Ctrl+bCtrl+d
Scroll down half a screen
Esimerkki:
Ctrl+dCtrl+u
Scroll up half a screen
Esimerkki:
Ctrl+uH
Move cursor to the top of the screen
Esimerkki:
HM
Move cursor to the middle of the screen
Esimerkki:
ML
Move cursor to the bottom of the screen
Esimerkki:
L%
Jump to matching bracket, parenthesis, or brace
Esimerkki:
%x
Delete the character under the cursor
Esimerkki:
xdd
Delete (cut) the current line
Esimerkki:
dddw
Delete from cursor to the end of the word
Esimerkki:
dwd$
Delete from cursor to the end of the line
Esimerkki:
d$D
Delete from cursor to end of line (same as d$)
Esimerkki:
Dyy
Yank (copy) the current line
Esimerkki:
yyyw
Yank (copy) from cursor to end of word
Esimerkki:
ywp
Paste after the cursor
Esimerkki:
pP
Paste before the cursor
Esimerkki:
Pu
Undo the last change
Esimerkki:
uCtrl+r
Redo the last undone change
Esimerkki:
Ctrl+rcc
Change (delete and enter insert mode) the current line
Esimerkki:
cccw
Change from cursor to end of word
Esimerkki:
cwc$
Change from cursor to end of line
Esimerkki:
c$.
Repeat the last change
Esimerkki:
.>>
Indent the current line one level to the right
Esimerkki:
>><<
Unindent the current line one level to the left
Esimerkki:
<<==
Auto-indent the current line
Esimerkki:
==J
Join the current line with the line below
Esimerkki:
J~
Toggle case of character under cursor
Esimerkki:
~r{char}
Replace the character under the cursor with {char}
Esimerkki:
ra/{pattern}
Search forward for pattern
Esimerkki:
/foo?{pattern}
Search backward for pattern
Esimerkki:
?foon
Repeat the last search in the same direction
Esimerkki:
nN
Repeat the last search in the opposite direction
Esimerkki:
N*
Search forward for the word under the cursor
Esimerkki:
*#
Search backward for the word under the cursor
Esimerkki:
#:s/old/new/g
Replace all occurrences of old with new on the current line
Esimerkki:
:s/foo/bar/g:%s/old/new/g
Replace all occurrences of old with new in the whole file
Esimerkki:
:%s/foo/bar/g:%s/old/new/gc
Replace all with confirmation prompts
Esimerkki:
:%s/foo/bar/gc:noh
Clear the search highlight
Esimerkki:
:noh:w
Save the current file
Esimerkki:
:w:w filename
Save the current buffer as a new filename
Esimerkki:
:w newfile.txt:q
Quit (close the window)
Esimerkki:
:q:wq
Save and quit
Esimerkki:
:wq:q!
Quit without saving (force quit)
Esimerkki:
:q!:x
Save and quit (only writes if changes were made)
Esimerkki:
:x:e filename
Open a file for editing
Esimerkki:
:e README.md:sp
Split the window horizontally
Esimerkki:
:sp file.txt:vsp
Split the window vertically
Esimerkki:
:vsp file.txtCtrl+w+w
Switch focus to the next split window
Esimerkki:
Ctrl+w wCtrl+w+h/j/k/l
Move focus to the window in the given direction
Esimerkki:
Ctrl+w l:close
Close the current window split
Esimerkki:
:close:only
Close all windows except the current one
Esimerkki:
:only:bn
Switch to the next buffer
Esimerkki:
:bn:bp
Switch to the previous buffer
Esimerkki:
:bp:bd
Delete (close) the current buffer
Esimerkki:
:bd:ls
List all open buffers
Esimerkki:
:ls:b N
Switch to buffer number N
Esimerkki:
:b 2:tabnew
Open a new tab
Esimerkki:
:tabnew file.txt:tabn
Switch to the next tab
Esimerkki:
:tabn:tabp
Switch to the previous tab
Esimerkki:
:tabp:tabclose
Close the current tab
Esimerkki:
:tabclosegt
Go to the next tab
Esimerkki:
gtgT
Go to the previous tab
Esimerkki:
gTq{a-z}
Start recording a macro into register {a-z}
Esimerkki:
qqq (stop)
Stop recording the current macro
Esimerkki:
q@{a-z}
Execute the macro stored in register {a-z}
Esimerkki:
@q@@
Repeat the last executed macro
Esimerkki:
@@N@{a-z}
Execute macro N times
Esimerkki:
5@q:reg
Show the contents of all registers
Esimerkki:
:regv then d
Select text in Visual mode then delete it
Esimerkki:
vwdv then y
Select text in Visual mode then yank (copy) it
Esimerkki:
vwyv then c
Select text in Visual mode then change it
Esimerkki:
vwcv then >
Indent selected text to the right
Esimerkki:
vip>vip
Select the current paragraph in Visual mode
Esimerkki:
vipviw
Select the current word in Visual mode
Esimerkki:
viwvis
Select the current sentence in Visual mode
Esimerkki:
visV then J
Select lines in Visual Line mode then join them
Esimerkki:
VjJ:set number
Show line numbers
Esimerkki:
:set number:set nonumber
Hide line numbers
Esimerkki:
:set nonumber:syntax on
Enable syntax highlighting
Esimerkki:
:syntax on:colorscheme
Change the color scheme
Esimerkki:
:colorscheme desert:help {topic}
Open Vim help for a topic
Esimerkki:
:help :wm{a-z}
Set a mark at the current cursor position
Esimerkki:
ma'{a-z}
Jump to the line of a mark
Esimerkki:
'a`{a-z}
Jump to the exact position of a mark
Esimerkki:
`a:set paste
Enable paste mode to avoid auto-indent issues
Esimerkki:
:set paste:set ignorecase
Make searches case-insensitive
Esimerkki:
:set ignorecase:set hlsearch
Highlight all search matches
Esimerkki:
:set hlsearchga
Show the ASCII value of the character under the cursor
Esimerkki:
gazz
Center the current line on the screen
Esimerkki:
zzCtrl+g
Show the current file name and cursor position
Esimerkki:
Ctrl+gLiittyvät työkalut
Näytä kaikki työkalutGit Commands Huijauslehti
Kattava Git-komentohuijauslehti. Hae yli 80 tärkeästä Git-komennosta esimerkeillä, kuvauksilla ja yhdellä napsautuksella.
Dockerin komennot Huijauslehti
Kattava Docker-komentohuijauslehti. Hae yli 70 tärkeästä Docker-komennosta esimerkeillä, kuvauksilla ja yhdellä napsautuksella.
Linux / Bash Command Cheat Sheet
Kattava Linux- ja Bash-komentohuijauslehti. Hae yli 80 tärkeästä komennosta esimerkeillä, kuvauksilla ja yhdellä napsautuksella.
SQL-muotoilija & Kaunistaja
Muotoile, kaunista ja puhdista SQL-kyselyt välittömästi selaimessasi. Latausta ei vaadita – täysin yksityinen ja ilmainen.