Skip to content

Instantly share code, notes, and snippets.

@riceissa
Last active November 1, 2023 12:24
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save riceissa/bcaa6b509d5561e057c1ec95af5a7d72 to your computer and use it in GitHub Desktop.
Save riceissa/bcaa6b509d5561e057c1ec95af5a7d72 to your computer and use it in GitHub Desktop.
Vim keys table
Legend: 'n' - not used in stock Vim
'y' - used in stock Vim
's' - synonym for something in stock Vim
'c' - key that continues, i.e. waits for another key; if 'showcmd' is
set, these are generally the cases where partial commands appear
on the status bar
The table assumes 'insertmode' and 'allowrevins' are not set.
See also <http://vim.wikia.com/wiki/Unused_keys>.
key normal visual insert cmdline
---------------------------------------
CTRL-@ n n y n
CTRL-A y y y y
CTRL-B y y n y
CTRL-C y y y y
CTRL-D y y y y
CTRL-E y y y y
CTRL-F y y y y
CTRL-G y y c y
CTRL-H y y y y
CTRL-I y n y y
CTRL-J s s s s
CTRL-K n n c c
CTRL-L y y y y
CTRL-M y y y y
CTRL-N s s y y
CTRL-O y n y n
CTRL-P s s y y
CTRL-Q s s s s
CTRL-R y n c c
CTRL-S n n n n
CTRL-T y n y y
CTRL-U y y y y
CTRL-V y y c c
CTRL-W c c y y
CTRL-X y y c n
CTRL-Y y y y y
CTRL-Z y y n n
CTRL-[ n y y y
CTRL-\ c c c c
CTRL-] y y y y
CTRL-^ y n y y
CTRL-_ n n n n
SPACE y y y y
! c y y y
" c c y y
# y y y y
$ y y y y
% y y y y
& y n y y
' c c y y
( y y y y
) y y y y
* y y y y
+ s s y y
, y y y y
- y y y y
. y n y y
/ y y y y
0 y y y y
1 y y y y
2 y y y y
3 y y y y
4 y y y y
5 y y y y
6 y y y y
7 y y y y
8 y y y y
9 y y y y
: y y y y
; y y y y
< c y y y
= c y y y
> c y y y
? y y y y
@ c y y y
A y y y y
B y y y y
C y y y y
D y y y y
E y y y y
F c c y y
G y y y y
H y y y y
I y y y y
J y y y y
K s y y y
L y y y y
M y y y y
N y y y y
O y y y y
P y s y y
Q y n y y
R y s[1] y y
S s y y y
T c c y y
U y y y y
V y y y y
W y y y y
X y y y y
Y s y y y
Z c n[2] y y
[ c c y y
\ c c y y
] c c y y
^ y y y y
_ y y y y
` c c y y
a y c y y
b y y y y
c c y y y
d c y y y
e y y y y
f c c y y
g c c y y
h y y y y
i y c y y
j y y y y
k y y y y
l y y y y
m c c y y
n y y y y
o y y y y
p y y y y
q c y y y
r c y y y
s s s y y
t c c y y
u y y y y
v y y y y
w y y y y
x s s y y
y c y y y
z c c y y
{ y y y y
| y y y y
} y y y y
~ y y y y
DEL s s y y
[1] The documentation (:help v_R) says "In a next version it might work
differently."
[2] Z in visual mode waits for a following key, as seen if 'showcmd' is set.
However, neither ZZ nor ZQ do anything (as in normal mode), and no other
key combination is listed in the index, so it appears that Z actually does
nothing in visual mode.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment