Convertitore gratuito
Comandi Vim Foglio informativo
Foglio informativo completo sui comandi Vim. Cerca oltre 80 comandi Vim essenziali con esempi, descrizioni e copia con un clic.
i
Enter Insert mode before the cursor
Esempio:
iI
Enter Insert mode at the beginning of the line
Esempio:
Ia
Enter Insert mode after the cursor
Esempio:
aA
Enter Insert mode at the end of the line
Esempio:
Ao
Open a new line below and enter Insert mode
Esempio:
oO
Open a new line above and enter Insert mode
Esempio:
Ov
Enter Visual mode (character selection)
Esempio:
vV
Enter Visual Line mode (line selection)
Esempio:
VCtrl+v
Enter Visual Block mode (column selection)
Esempio:
Ctrl+v:
Enter Command-line mode
Esempio:
:wEsc
Return to Normal mode from any mode
Esempio:
EscR
Enter Replace mode (overwrite characters)
Esempio:
Rh
Move cursor left
Esempio:
5hj
Move cursor down
Esempio:
10jk
Move cursor up
Esempio:
10kl
Move cursor right
Esempio:
5lw
Move to the start of the next word
Esempio:
3wb
Move to the start of the previous word
Esempio:
3be
Move to the end of the current word
Esempio:
2e0
Move to the beginning of the line
Esempio:
0^
Move to the first non-blank character of the line
Esempio:
^$
Move to the end of the line
Esempio:
$gg
Move to the first line of the file
Esempio:
ggG
Move to the last line of the file
Esempio:
G:N
Jump to line number N
Esempio:
:42Ctrl+f
Scroll forward (down) one screen
Esempio:
Ctrl+fCtrl+b
Scroll backward (up) one screen
Esempio:
Ctrl+bCtrl+d
Scroll down half a screen
Esempio:
Ctrl+dCtrl+u
Scroll up half a screen
Esempio:
Ctrl+uH
Move cursor to the top of the screen
Esempio:
HM
Move cursor to the middle of the screen
Esempio:
ML
Move cursor to the bottom of the screen
Esempio:
L%
Jump to matching bracket, parenthesis, or brace
Esempio:
%x
Delete the character under the cursor
Esempio:
xdd
Delete (cut) the current line
Esempio:
dddw
Delete from cursor to the end of the word
Esempio:
dwd$
Delete from cursor to the end of the line
Esempio:
d$D
Delete from cursor to end of line (same as d$)
Esempio:
Dyy
Yank (copy) the current line
Esempio:
yyyw
Yank (copy) from cursor to end of word
Esempio:
ywp
Paste after the cursor
Esempio:
pP
Paste before the cursor
Esempio:
Pu
Undo the last change
Esempio:
uCtrl+r
Redo the last undone change
Esempio:
Ctrl+rcc
Change (delete and enter insert mode) the current line
Esempio:
cccw
Change from cursor to end of word
Esempio:
cwc$
Change from cursor to end of line
Esempio:
c$.
Repeat the last change
Esempio:
.>>
Indent the current line one level to the right
Esempio:
>><<
Unindent the current line one level to the left
Esempio:
<<==
Auto-indent the current line
Esempio:
==J
Join the current line with the line below
Esempio:
J~
Toggle case of character under cursor
Esempio:
~r{char}
Replace the character under the cursor with {char}
Esempio:
ra/{pattern}
Search forward for pattern
Esempio:
/foo?{pattern}
Search backward for pattern
Esempio:
?foon
Repeat the last search in the same direction
Esempio:
nN
Repeat the last search in the opposite direction
Esempio:
N*
Search forward for the word under the cursor
Esempio:
*#
Search backward for the word under the cursor
Esempio:
#:s/old/new/g
Replace all occurrences of old with new on the current line
Esempio:
:s/foo/bar/g:%s/old/new/g
Replace all occurrences of old with new in the whole file
Esempio:
:%s/foo/bar/g:%s/old/new/gc
Replace all with confirmation prompts
Esempio:
:%s/foo/bar/gc:noh
Clear the search highlight
Esempio:
:noh:w
Save the current file
Esempio:
:w:w filename
Save the current buffer as a new filename
Esempio:
:w newfile.txt:q
Quit (close the window)
Esempio:
:q:wq
Save and quit
Esempio:
:wq:q!
Quit without saving (force quit)
Esempio:
:q!:x
Save and quit (only writes if changes were made)
Esempio:
:x:e filename
Open a file for editing
Esempio:
:e README.md:sp
Split the window horizontally
Esempio:
:sp file.txt:vsp
Split the window vertically
Esempio:
:vsp file.txtCtrl+w+w
Switch focus to the next split window
Esempio:
Ctrl+w wCtrl+w+h/j/k/l
Move focus to the window in the given direction
Esempio:
Ctrl+w l:close
Close the current window split
Esempio:
:close:only
Close all windows except the current one
Esempio:
:only:bn
Switch to the next buffer
Esempio:
:bn:bp
Switch to the previous buffer
Esempio:
:bp:bd
Delete (close) the current buffer
Esempio:
:bd:ls
List all open buffers
Esempio:
:ls:b N
Switch to buffer number N
Esempio:
:b 2:tabnew
Open a new tab
Esempio:
:tabnew file.txt:tabn
Switch to the next tab
Esempio:
:tabn:tabp
Switch to the previous tab
Esempio:
:tabp:tabclose
Close the current tab
Esempio:
:tabclosegt
Go to the next tab
Esempio:
gtgT
Go to the previous tab
Esempio:
gTq{a-z}
Start recording a macro into register {a-z}
Esempio:
qqq (stop)
Stop recording the current macro
Esempio:
q@{a-z}
Execute the macro stored in register {a-z}
Esempio:
@q@@
Repeat the last executed macro
Esempio:
@@N@{a-z}
Execute macro N times
Esempio:
5@q:reg
Show the contents of all registers
Esempio:
:regv then d
Select text in Visual mode then delete it
Esempio:
vwdv then y
Select text in Visual mode then yank (copy) it
Esempio:
vwyv then c
Select text in Visual mode then change it
Esempio:
vwcv then >
Indent selected text to the right
Esempio:
vip>vip
Select the current paragraph in Visual mode
Esempio:
vipviw
Select the current word in Visual mode
Esempio:
viwvis
Select the current sentence in Visual mode
Esempio:
visV then J
Select lines in Visual Line mode then join them
Esempio:
VjJ:set number
Show line numbers
Esempio:
:set number:set nonumber
Hide line numbers
Esempio:
:set nonumber:syntax on
Enable syntax highlighting
Esempio:
:syntax on:colorscheme
Change the color scheme
Esempio:
:colorscheme desert:help {topic}
Open Vim help for a topic
Esempio:
:help :wm{a-z}
Set a mark at the current cursor position
Esempio:
ma'{a-z}
Jump to the line of a mark
Esempio:
'a`{a-z}
Jump to the exact position of a mark
Esempio:
`a:set paste
Enable paste mode to avoid auto-indent issues
Esempio:
:set paste:set ignorecase
Make searches case-insensitive
Esempio:
:set ignorecase:set hlsearch
Highlight all search matches
Esempio:
:set hlsearchga
Show the ASCII value of the character under the cursor
Esempio:
gazz
Center the current line on the screen
Esempio:
zzCtrl+g
Show the current file name and cursor position
Esempio:
Ctrl+gStrumenti Correlati
Visualizza tutti gli strumentiComandi Git Foglio informativo
Foglio informativo completo sui comandi Git. Cerca oltre 80 comandi Git essenziali con esempi, descrizioni e copia con un clic.
Comandi della finestra mobile Foglio informativo
Foglio informativo completo sui comandi Docker. Cerca oltre 70 comandi Docker essenziali con esempi, descrizioni e copia con un clic.
Linux/Bash Foglio informativo dei comandi
Foglio informativo completo sui comandi Linux e Bash. Cerca oltre 80 comandi essenziali con esempi, descrizioni e copia con un clic.
Formattatore SQL e abbellitore
Formatta, abbellisci e ripulisci istantaneamente le query SQL nel tuo browser. Nessun caricamento richiesto: completamente privato e gratuito.