Convertisseur Gratuit
Commandes Vim Aide-mémoire
Aide-mémoire complet des commandes Vim. Recherchez plus de 80 commandes Vim essentielles avec exemples, descriptions et copie en un clic.
i
Enter Insert mode before the cursor
Exemple :
iI
Enter Insert mode at the beginning of the line
Exemple :
Ia
Enter Insert mode after the cursor
Exemple :
aA
Enter Insert mode at the end of the line
Exemple :
Ao
Open a new line below and enter Insert mode
Exemple :
oO
Open a new line above and enter Insert mode
Exemple :
Ov
Enter Visual mode (character selection)
Exemple :
vV
Enter Visual Line mode (line selection)
Exemple :
VCtrl+v
Enter Visual Block mode (column selection)
Exemple :
Ctrl+v:
Enter Command-line mode
Exemple :
:wEsc
Return to Normal mode from any mode
Exemple :
EscR
Enter Replace mode (overwrite characters)
Exemple :
Rh
Move cursor left
Exemple :
5hj
Move cursor down
Exemple :
10jk
Move cursor up
Exemple :
10kl
Move cursor right
Exemple :
5lw
Move to the start of the next word
Exemple :
3wb
Move to the start of the previous word
Exemple :
3be
Move to the end of the current word
Exemple :
2e0
Move to the beginning of the line
Exemple :
0^
Move to the first non-blank character of the line
Exemple :
^$
Move to the end of the line
Exemple :
$gg
Move to the first line of the file
Exemple :
ggG
Move to the last line of the file
Exemple :
G:N
Jump to line number N
Exemple :
:42Ctrl+f
Scroll forward (down) one screen
Exemple :
Ctrl+fCtrl+b
Scroll backward (up) one screen
Exemple :
Ctrl+bCtrl+d
Scroll down half a screen
Exemple :
Ctrl+dCtrl+u
Scroll up half a screen
Exemple :
Ctrl+uH
Move cursor to the top of the screen
Exemple :
HM
Move cursor to the middle of the screen
Exemple :
ML
Move cursor to the bottom of the screen
Exemple :
L%
Jump to matching bracket, parenthesis, or brace
Exemple :
%x
Delete the character under the cursor
Exemple :
xdd
Delete (cut) the current line
Exemple :
dddw
Delete from cursor to the end of the word
Exemple :
dwd$
Delete from cursor to the end of the line
Exemple :
d$D
Delete from cursor to end of line (same as d$)
Exemple :
Dyy
Yank (copy) the current line
Exemple :
yyyw
Yank (copy) from cursor to end of word
Exemple :
ywp
Paste after the cursor
Exemple :
pP
Paste before the cursor
Exemple :
Pu
Undo the last change
Exemple :
uCtrl+r
Redo the last undone change
Exemple :
Ctrl+rcc
Change (delete and enter insert mode) the current line
Exemple :
cccw
Change from cursor to end of word
Exemple :
cwc$
Change from cursor to end of line
Exemple :
c$.
Repeat the last change
Exemple :
.>>
Indent the current line one level to the right
Exemple :
>><<
Unindent the current line one level to the left
Exemple :
<<==
Auto-indent the current line
Exemple :
==J
Join the current line with the line below
Exemple :
J~
Toggle case of character under cursor
Exemple :
~r{char}
Replace the character under the cursor with {char}
Exemple :
ra/{pattern}
Search forward for pattern
Exemple :
/foo?{pattern}
Search backward for pattern
Exemple :
?foon
Repeat the last search in the same direction
Exemple :
nN
Repeat the last search in the opposite direction
Exemple :
N*
Search forward for the word under the cursor
Exemple :
*#
Search backward for the word under the cursor
Exemple :
#:s/old/new/g
Replace all occurrences of old with new on the current line
Exemple :
:s/foo/bar/g:%s/old/new/g
Replace all occurrences of old with new in the whole file
Exemple :
:%s/foo/bar/g:%s/old/new/gc
Replace all with confirmation prompts
Exemple :
:%s/foo/bar/gc:noh
Clear the search highlight
Exemple :
:noh:w
Save the current file
Exemple :
:w:w filename
Save the current buffer as a new filename
Exemple :
:w newfile.txt:q
Quit (close the window)
Exemple :
:q:wq
Save and quit
Exemple :
:wq:q!
Quit without saving (force quit)
Exemple :
:q!:x
Save and quit (only writes if changes were made)
Exemple :
:x:e filename
Open a file for editing
Exemple :
:e README.md:sp
Split the window horizontally
Exemple :
:sp file.txt:vsp
Split the window vertically
Exemple :
:vsp file.txtCtrl+w+w
Switch focus to the next split window
Exemple :
Ctrl+w wCtrl+w+h/j/k/l
Move focus to the window in the given direction
Exemple :
Ctrl+w l:close
Close the current window split
Exemple :
:close:only
Close all windows except the current one
Exemple :
:only:bn
Switch to the next buffer
Exemple :
:bn:bp
Switch to the previous buffer
Exemple :
:bp:bd
Delete (close) the current buffer
Exemple :
:bd:ls
List all open buffers
Exemple :
:ls:b N
Switch to buffer number N
Exemple :
:b 2:tabnew
Open a new tab
Exemple :
:tabnew file.txt:tabn
Switch to the next tab
Exemple :
:tabn:tabp
Switch to the previous tab
Exemple :
:tabp:tabclose
Close the current tab
Exemple :
:tabclosegt
Go to the next tab
Exemple :
gtgT
Go to the previous tab
Exemple :
gTq{a-z}
Start recording a macro into register {a-z}
Exemple :
qqq (stop)
Stop recording the current macro
Exemple :
q@{a-z}
Execute the macro stored in register {a-z}
Exemple :
@q@@
Repeat the last executed macro
Exemple :
@@N@{a-z}
Execute macro N times
Exemple :
5@q:reg
Show the contents of all registers
Exemple :
:regv then d
Select text in Visual mode then delete it
Exemple :
vwdv then y
Select text in Visual mode then yank (copy) it
Exemple :
vwyv then c
Select text in Visual mode then change it
Exemple :
vwcv then >
Indent selected text to the right
Exemple :
vip>vip
Select the current paragraph in Visual mode
Exemple :
vipviw
Select the current word in Visual mode
Exemple :
viwvis
Select the current sentence in Visual mode
Exemple :
visV then J
Select lines in Visual Line mode then join them
Exemple :
VjJ:set number
Show line numbers
Exemple :
:set number:set nonumber
Hide line numbers
Exemple :
:set nonumber:syntax on
Enable syntax highlighting
Exemple :
:syntax on:colorscheme
Change the color scheme
Exemple :
:colorscheme desert:help {topic}
Open Vim help for a topic
Exemple :
:help :wm{a-z}
Set a mark at the current cursor position
Exemple :
ma'{a-z}
Jump to the line of a mark
Exemple :
'a`{a-z}
Jump to the exact position of a mark
Exemple :
`a:set paste
Enable paste mode to avoid auto-indent issues
Exemple :
:set paste:set ignorecase
Make searches case-insensitive
Exemple :
:set ignorecase:set hlsearch
Highlight all search matches
Exemple :
:set hlsearchga
Show the ASCII value of the character under the cursor
Exemple :
gazz
Center the current line on the screen
Exemple :
zzCtrl+g
Show the current file name and cursor position
Exemple :
Ctrl+gOutils Similaires
Voir tous les outilsCommandes Git Aide-mémoire
Aide-mémoire complet des commandes Git. Recherchez plus de 80 commandes Git essentielles avec des exemples, des descriptions et une copie en un clic.
Commandes Docker Aide-Mémoire
Aide-mémoire complet des commandes Docker. Recherchez 70+ commandes essentielles avec exemples, descriptions et copie en un clic.
Linux / Bash Aide-Mémoire des Commandes
Aide-mémoire complet des commandes Linux et Bash. Recherchez plus de 80 commandes essentielles avec exemples, descriptions et copie en un clic.
Requête SQL Formateur et Colorateur
Formatez, embellissez et colorez syntaxiquement vos requêtes SQL instantanément dans votre navigateur. Gratuit, sécurisé, aucun téléchargement requis.