Gratis konverter
Vim kommandoer Snydeark
Omfattende Vim kommando snydeark. Søg i mere end 80 vigtige Vim-kommandoer med eksempler, beskrivelser og kopi med ét klik.
i
Enter Insert mode before the cursor
Eksempel:
iI
Enter Insert mode at the beginning of the line
Eksempel:
Ia
Enter Insert mode after the cursor
Eksempel:
aA
Enter Insert mode at the end of the line
Eksempel:
Ao
Open a new line below and enter Insert mode
Eksempel:
oO
Open a new line above and enter Insert mode
Eksempel:
Ov
Enter Visual mode (character selection)
Eksempel:
vV
Enter Visual Line mode (line selection)
Eksempel:
VCtrl+v
Enter Visual Block mode (column selection)
Eksempel:
Ctrl+v:
Enter Command-line mode
Eksempel:
:wEsc
Return to Normal mode from any mode
Eksempel:
EscR
Enter Replace mode (overwrite characters)
Eksempel:
Rh
Move cursor left
Eksempel:
5hj
Move cursor down
Eksempel:
10jk
Move cursor up
Eksempel:
10kl
Move cursor right
Eksempel:
5lw
Move to the start of the next word
Eksempel:
3wb
Move to the start of the previous word
Eksempel:
3be
Move to the end of the current word
Eksempel:
2e0
Move to the beginning of the line
Eksempel:
0^
Move to the first non-blank character of the line
Eksempel:
^$
Move to the end of the line
Eksempel:
$gg
Move to the first line of the file
Eksempel:
ggG
Move to the last line of the file
Eksempel:
G:N
Jump to line number N
Eksempel:
:42Ctrl+f
Scroll forward (down) one screen
Eksempel:
Ctrl+fCtrl+b
Scroll backward (up) one screen
Eksempel:
Ctrl+bCtrl+d
Scroll down half a screen
Eksempel:
Ctrl+dCtrl+u
Scroll up half a screen
Eksempel:
Ctrl+uH
Move cursor to the top of the screen
Eksempel:
HM
Move cursor to the middle of the screen
Eksempel:
ML
Move cursor to the bottom of the screen
Eksempel:
L%
Jump to matching bracket, parenthesis, or brace
Eksempel:
%x
Delete the character under the cursor
Eksempel:
xdd
Delete (cut) the current line
Eksempel:
dddw
Delete from cursor to the end of the word
Eksempel:
dwd$
Delete from cursor to the end of the line
Eksempel:
d$D
Delete from cursor to end of line (same as d$)
Eksempel:
Dyy
Yank (copy) the current line
Eksempel:
yyyw
Yank (copy) from cursor to end of word
Eksempel:
ywp
Paste after the cursor
Eksempel:
pP
Paste before the cursor
Eksempel:
Pu
Undo the last change
Eksempel:
uCtrl+r
Redo the last undone change
Eksempel:
Ctrl+rcc
Change (delete and enter insert mode) the current line
Eksempel:
cccw
Change from cursor to end of word
Eksempel:
cwc$
Change from cursor to end of line
Eksempel:
c$.
Repeat the last change
Eksempel:
.>>
Indent the current line one level to the right
Eksempel:
>><<
Unindent the current line one level to the left
Eksempel:
<<==
Auto-indent the current line
Eksempel:
==J
Join the current line with the line below
Eksempel:
J~
Toggle case of character under cursor
Eksempel:
~r{char}
Replace the character under the cursor with {char}
Eksempel:
ra/{pattern}
Search forward for pattern
Eksempel:
/foo?{pattern}
Search backward for pattern
Eksempel:
?foon
Repeat the last search in the same direction
Eksempel:
nN
Repeat the last search in the opposite direction
Eksempel:
N*
Search forward for the word under the cursor
Eksempel:
*#
Search backward for the word under the cursor
Eksempel:
#:s/old/new/g
Replace all occurrences of old with new on the current line
Eksempel:
:s/foo/bar/g:%s/old/new/g
Replace all occurrences of old with new in the whole file
Eksempel:
:%s/foo/bar/g:%s/old/new/gc
Replace all with confirmation prompts
Eksempel:
:%s/foo/bar/gc:noh
Clear the search highlight
Eksempel:
:noh:w
Save the current file
Eksempel:
:w:w filename
Save the current buffer as a new filename
Eksempel:
:w newfile.txt:q
Quit (close the window)
Eksempel:
:q:wq
Save and quit
Eksempel:
:wq:q!
Quit without saving (force quit)
Eksempel:
:q!:x
Save and quit (only writes if changes were made)
Eksempel:
:x:e filename
Open a file for editing
Eksempel:
:e README.md:sp
Split the window horizontally
Eksempel:
:sp file.txt:vsp
Split the window vertically
Eksempel:
:vsp file.txtCtrl+w+w
Switch focus to the next split window
Eksempel:
Ctrl+w wCtrl+w+h/j/k/l
Move focus to the window in the given direction
Eksempel:
Ctrl+w l:close
Close the current window split
Eksempel:
:close:only
Close all windows except the current one
Eksempel:
:only:bn
Switch to the next buffer
Eksempel:
:bn:bp
Switch to the previous buffer
Eksempel:
:bp:bd
Delete (close) the current buffer
Eksempel:
:bd:ls
List all open buffers
Eksempel:
:ls:b N
Switch to buffer number N
Eksempel:
:b 2:tabnew
Open a new tab
Eksempel:
:tabnew file.txt:tabn
Switch to the next tab
Eksempel:
:tabn:tabp
Switch to the previous tab
Eksempel:
:tabp:tabclose
Close the current tab
Eksempel:
:tabclosegt
Go to the next tab
Eksempel:
gtgT
Go to the previous tab
Eksempel:
gTq{a-z}
Start recording a macro into register {a-z}
Eksempel:
qqq (stop)
Stop recording the current macro
Eksempel:
q@{a-z}
Execute the macro stored in register {a-z}
Eksempel:
@q@@
Repeat the last executed macro
Eksempel:
@@N@{a-z}
Execute macro N times
Eksempel:
5@q:reg
Show the contents of all registers
Eksempel:
:regv then d
Select text in Visual mode then delete it
Eksempel:
vwdv then y
Select text in Visual mode then yank (copy) it
Eksempel:
vwyv then c
Select text in Visual mode then change it
Eksempel:
vwcv then >
Indent selected text to the right
Eksempel:
vip>vip
Select the current paragraph in Visual mode
Eksempel:
vipviw
Select the current word in Visual mode
Eksempel:
viwvis
Select the current sentence in Visual mode
Eksempel:
visV then J
Select lines in Visual Line mode then join them
Eksempel:
VjJ:set number
Show line numbers
Eksempel:
:set number:set nonumber
Hide line numbers
Eksempel:
:set nonumber:syntax on
Enable syntax highlighting
Eksempel:
:syntax on:colorscheme
Change the color scheme
Eksempel:
:colorscheme desert:help {topic}
Open Vim help for a topic
Eksempel:
:help :wm{a-z}
Set a mark at the current cursor position
Eksempel:
ma'{a-z}
Jump to the line of a mark
Eksempel:
'a`{a-z}
Jump to the exact position of a mark
Eksempel:
`a:set paste
Enable paste mode to avoid auto-indent issues
Eksempel:
:set paste:set ignorecase
Make searches case-insensitive
Eksempel:
:set ignorecase:set hlsearch
Highlight all search matches
Eksempel:
:set hlsearchga
Show the ASCII value of the character under the cursor
Eksempel:
gazz
Center the current line on the screen
Eksempel:
zzCtrl+g
Show the current file name and cursor position
Eksempel:
Ctrl+gRelaterede værktøjer
Se alle værktøjerGit-kommandoer Snydeark
Omfattende Git kommando snydeark. Søg i mere end 80 essentielle Git-kommandoer med eksempler, beskrivelser og kopi med et enkelt klik.
Docker-kommandoer Snydeark
Omfattende Docker kommando snydeark. Søg i mere end 70 essentielle Docker-kommandoer med eksempler, beskrivelser og kopi med et enkelt klik.
Linux / Bash Kommando snydeark
Omfattende Linux og Bash kommando snydeark. Søg i mere end 80 vigtige kommandoer med eksempler, beskrivelser og kopi med ét klik.
SQL formaterer & Forskønnelsesmiddel
Formater, forskønne og ryd op i SQL-forespørgsler med det samme i din browser. Ingen upload nødvendig - helt privat og gratis.