~ / motions
1
Moving Around
Get anywhere without the arrow keys: characters, words, lines, the whole file and the screen. Counts multiply every motion.
- 01
h j k l, and counts
Step around from the home row, and multiply any motion with a number.
hjkl{count}j{count}k{count}{motion} - 02
Words and WORDS: w b e ge, W B E gE
Hop a word at a time, or a whole whitespace-separated chunk at a time.
wbegeWBEgE - 03
Along a line: 0 ^ $ g_ and |
Jump to either end of a line, its first or last real character, or an exact column.
0^$g_{count}| - 04
The whole file: gg, G, {n}G and :{n}
Jump to the first line, the last line, or any line by number.
ggG{count}G:{count}<CR>nvim - 05
- 06
The screen: H M L, scrolling and zz
Jump to what you can see, scroll by half or whole screens, and recenter.
HML<C-d><C-u><C-f><C-b><C-e>nvim