Last active
November 18, 2024 09:34
-
-
Save dahu/3986511 to your computer and use it in GitHub Desktop.
Vim Motions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large Object Motions: | |
( | |
) | |
{ | |
} | |
[[ | |
[] | |
][ | |
]] | |
[m | |
[M | |
]m | |
]M | |
[( | |
]) | |
[{ | |
]} | |
Word Motions: | |
w | |
W | |
e | |
E | |
b | |
B | |
ge | |
gE | |
Line Motions: | |
H | |
L | |
M | |
j | |
k | |
gg | |
G | |
- | |
+ | |
_ | |
Display Line Motions: | |
gj | |
gk | |
Column Motions: | |
h (or <Left> or <ctrl-h> or <BS>) | |
l (or <Right> or <Space>) | |
^ | |
$ (or <End>) | |
| | |
0 | |
<Home> | |
Display Column Motions: | |
g^ | |
g$ (or g<End>) | |
g_ | |
g0 (or g<Home>) | |
gm | |
Search Motions: | |
/ | |
? | |
n | |
N | |
# | |
* | |
Find Motions: | |
F | |
f | |
T | |
t | |
; | |
, | |
Changelist Motions: | |
g; | |
g, | |
Extended Matchit Motions: | |
% | |
g% | |
Jump Motions: | |
` | |
' | |
ctrl-o | |
ctrl-i (or Tab) | |
Buffer Motions: | |
{count}% | |
{count}go | |
Some Additional Commands that move the cursor: | |
Commence Editing: | |
a | |
A | |
I | |
gI | |
o | |
O | |
Scroll Cursor: | |
z<CR> | |
zt | |
z. | |
zz | |
z- | |
zb | |
Scroll Window: | |
ctrl-y | |
ctrl-e | |
ctrl-u | |
ctrl-d | |
ctrl-b (or PageUp) | |
ctrl-f (or PageDown) | |
z^ | |
z+ | |
Tag Jumps: | |
ctrl-] | |
g] | |
g ctrl-] | |
ctrl-t | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment