Vim

Vim Raccourcis

Raccourcis clavier de Vim et Neovim — édition modale, navigation et commandes. v9.x

Source: Documentation officielle · Mis à jour 2026-06

Raccourcis
6
Catégories

Guide du cheat sheet

Vim shortcuts worth learning first

Cette page rassemble 60 raccourcis clavier consultables pour Vim dans 6 catégories. Commencez par les catégories principales, puis imprimez la fiche si vous voulez la garder à portée de main.

  • Enter Normal modeEsc
  • Move left/down/up/righthjkl
  • Supprimer le caractèrex
  • Search forward/{pattern}
  • Enregistrer le fichier:w
  • Record macro into registerq{letter}

Modes

11 raccourcis
Enter Normal mode
Esc
Enter Insert mode
i
Insert at end of line
A
Insert on new line below
o
Insert on new line above
O
Enter Visual mode
v
Enter Visual Line mode
V
Enter Visual Block mode
CtrlV
Enter Command-line mode
:
Replace single character
r
Replace mode (overwrite)
R

Navigation

12 raccourcis
Move left/down/up/right
hjkl
Next / previous word
wb
End of word
e
Start of line (non-blank)
^
Fin de ligne
$
First line of file
gg
Last line of file
G
Go to line N
:NorNgg
Half page down/up
CtrlDCtrlU
Aller à la parenthèse correspondante
%
Jump to next/prev occurrence of char
f{char}F{char}
Center view on cursor
zz

Edition

15 raccourcis
Supprimer le caractère
x
Supprimer la ligne
dd
Delete word
dw
Delete to end of line
D
Yank (copy) line
yy
Yank word
yw
Paste after / before cursor
pP
Change word
cw
Change to end of line
C
Change entire line
cc
Annuler
u
Retablir
CtrlR
Repeat last change
.
Indent / unindent line
>><<
Auto-indent selection
=G(fromtop)

Recherche et remplacement

8 raccourcis
Search forward
/{pattern}
Search backward
?{pattern}
Next / previous match
nN
Search word under cursor
*#
Replace in line
:s/old/new/
Replace all in file
:%s/old/new/g
Replace with confirmation
:%s/old/new/gc
Clear search highlight
:noh

Fichiers et buffers

9 raccourcis
Enregistrer le fichier
:w
Enregistrer et quitter
:wq
Quitter sans enregistrer
:q!
Ouvrir le fichier
:e{file}
List buffers
:ls
Next / previous buffer
:bn:bp
Split horizontally
:sp
Split vertically
:vsp
Navigate splits
CtrlWhjkl

Macros

5 raccourcis
Record macro into register
q{letter}
Stop recording
q
Play macro
@{letter}
Repeat last macro
@@
Run macro N times
N@{letter}

Questions fréquentes

Quel est le moyen le plus rapide de trouver les raccourcis Vim sur cette page?

Utilisez la barre de recherche ou appuyez sur /, puis tapez une action comme enter normal mode.

Puis-je imprimer cette fiche de raccourcis Vim?

Oui. Utilisez le bouton Imprimer / PDF ou la commande d'impression du navigateur pour sauvegarder une fiche compacte.

Cette page inclut-elle les raccourcis Windows et Mac pour Vim?

Oui. Utilisez les onglets OS pour passer des raccourcis Windows aux raccourcis macOS. Par exemple, enter normal mode est Esc sur Windows et Esc sur macOS si disponible.

Voir aussi

Aucun raccourci ne correspond à la recherche.