Tutti gli strumenti
Gratuito

Un riferimento ricercabile e stampabile di Vim — modalità, movimenti, modifica, cerca e sostituisci, finestre, buffer e registri. Gratis.

Modes

9
Esc
Return to Normal mode
i / a
Insert before / after the cursor
I / A
Insert at start / end of the line
o / O
Open a new line below / above
v
Visual mode (character selection)
V
Visual line mode
Ctrl-v
Visual block mode (columns)
R
Replace mode (overtype)
:
Command-line (Ex) mode

Motions

10
h j k l
Left, down, up, right
w / b
Forward / back one word
e / ge
End of next / previous word
0 / ^ / $
Line start / first non-blank / line end
gg / G
First line / last line
42G / :42
Jump to line 42
{ / }
Previous / next paragraph
%
Jump to matching bracket
f x / t x
Move to / before next x on the line
Ctrl-d / Ctrl-u
Scroll half page down / up

Editing operators

11
x / X
Delete char under / before cursor
dd / D
Delete line / to end of line
dw / diw
Delete word / inner word
cc / C
Change line / to end of line
ciw / ci"
Change inner word / inside quotes
yy / yw
Yank (copy) line / word
p / P
Paste after / before the cursor
r x / ~
Replace one char / toggle case
u / Ctrl-r
Undo / redo
.
Repeat the last change
>> / <<
Indent / unindent the line

Visual mode

9
v / V
Start character / line selection
Ctrl-v
Start block (column) selection
o
Jump to the other end of the selection
d / y
Delete / yank the selection
c
Change the selection
> / <
Indent / unindent the selection
gu / gU
Lowercase / uppercase the selection
gv
Reselect the last visual selection
I / A
Block insert before / append after (Ctrl-v)

Search & replace

9
/pattern
Search forward for pattern
?pattern
Search backward for pattern
n / N
Next / previous match
* / #
Search word under cursor fwd / back
:%s/old/new/g
Replace all in the file
:%s/old/new/gc
Replace all with confirmation
:s/old/new/g
Replace all on the current line
:%s/\<word\>/x/g
Replace whole words only
:noh
Clear search highlighting

Windows & tabs

8
:sp / :split
Horizontal split
:vsp / :vsplit
Vertical split
Ctrl-w h/j/k/l
Move to the split in that direction
Ctrl-w w
Cycle to the next split
Ctrl-w q / c
Close the current split
Ctrl-w o
Close all other splits
Ctrl-w =
Equalize split sizes
:tabnew / gt / gT
New tab / next / previous tab

Buffers & files

9
:e file
Open / edit a file
:w / :w file
Save / save as
:wq / :x / ZZ
Save and quit
:q / :q!
Quit / quit discarding changes
:ls / :buffers
List open buffers
:b name / :bN
Switch to a buffer by name / number
:bn / :bp
Next / previous buffer
:bd
Delete (close) a buffer
:wa / :qa
Write all / quit all

Registers & marks

8
"ayy
Yank line into register a
"ap
Paste from register a
"+y / "+p
Yank to / paste from system clipboard
:reg
Show register contents
ma
Set mark a at the cursor
`a / 'a
Jump to mark a (exact / line)
``
Jump back to the previous position
:marks
List all marks

Macros

7
qa
Start recording into register a
q
Stop recording
@a
Play back macro a
@@
Repeat the last played macro
5@a
Play macro a five times
:%normal @a
Run macro a on every line
"ap → edit → "ay$
Paste, edit, then re-yank a macro to change it

Nessuna voce corrisponde a “:q”.


Informazioni su Scheda di Riferimento Vim

Questa cheat sheet Vim mappa l'editor per concetto: modalità, movimenti, operatori di modifica, modalità visuale, ricerca e sostituzione, finestre e schede, buffer e file, registri e marcatori, e macro. Ogni riga è un tasto o un comando con una descrizione di una riga di ciò che fa.

Vim premia la memoria muscolare, e il modo più rapido per costruirla è avere il movimento o l'operatore giusto davanti quando ne hai bisogno. La scheda mantiene raggruppati i pezzi componibili — operatori, movimenti, contatori — così la grammatica di Vim resta visibile invece di essere memorizzata un tasto alla volta.

È gratuita e completamente client-side: filtra ogni tasto in tempo reale con la casella di ricerca, salta tra le sezioni dal sommario fisso, clicca per copiare un comando Ex e stampa la scheda — il modo classico di imparare Vim è con una stampa accanto alla tastiera.

Come usare Scheda di Riferimento Vim

  1. Inizia dalla sezione Modalità se sei nuovo, oppure vai direttamente a Movimenti e Operatori di modifica.
  2. Cerca un'azione come delete, replace o macro per filtrare l'intera scheda.
  3. Usa il sommario fisso per saltare a sezioni come Registri e marcatori o Finestre e schede.
  4. Clicca su un comando o sulla sua icona di copia per copiare comandi Ex come i pattern di cerca-e-sostituisci.
  5. Stampa la scheda e tienila accanto alla tastiera mentre i movimenti diventano memoria muscolare.

Domande frequenti

Nove sezioni: modalità, movimenti, operatori di modifica, modalità visuale, ricerca e sostituzione, finestre e schede, buffer e file, registri e marcatori, e macro — l'intero vocabolario operativo dell'editor.

Sì. La scheda copre il comportamento di base di Vim — modalità, movimenti, operatori, registri, macro — che è identico in Neovim, quindi tutto si applica indipendentemente da quale dei due usi.

Leggi prima la sezione Modalità per capire le modalità normale, inserimento e visuale, poi impara una manciata di movimenti e operatori. Poiché i comandi Vim si compongono, un piccolo vocabolario copre già la maggior parte delle modifiche.

Sì. Il pulsante Stampa elimina la barra di ricerca e la navigazione e restituisce solo i tasti e le descrizioni — una cheat sheet Vim stampata è ancora il modo classico di impararlo.

Sì, completamente gratuito, ricercabile nel browser e stampabile senza alcun account.


Ricerche popolari
vim cheat sheet vim commands list vim shortcuts vim search and replace vim motions reference vim visual mode commands vim macros how to quit vim
Hai bisogno di aiuto?
Hai riscontrato un problema con questo strumento? Faccelo sapere.
Segnala un problema

Aggiungi questo strumento gratuito al tuo sito web — copia e incolla il codice qui sotto.