Here’s a quick guide to help you learn how to move around in Vim.
The Memorization Aid column contains a tip on remembering the actions of the command.
The Count column tells you if you can modify the command with a Count. A Count is a way to trigger the command more than once (equal to the value of the Count). For example, the 5w command will jump five WORDs.
Movement Commands
|
Key 45_936b1c-72> |
Count 45_299455-61> |
Move Type 45_f63c88-4e> |
Action 45_dae8ee-df> |
Memorization Aid 45_b6a08b-79> |
|---|---|---|---|---|
45_b8b7fd-83>
| 45_884cc1-02> |
Line 45_e48ba5-94> |
Go to first character of the line. 45_6f57c4-39> | 45_ad9b8f-ca> |
45_d8d023-ea>
| 45_3ed6a0-10> |
Line 45_407d27-64> |
Go to the first non-whitespace character of the line. 45_5fbceb-2f> |
Similar symbol meaning in regex 45_58c715-e9> |
45_0cb340-44>
| 45_f380e6-d8> |
Line 45_4a5017-f2> |
Go to the last character of the line. 45_dd6e39-88> |
Similar symbol meaning in regex 45_5838b6-33> |
45_90d7e7-55>
| 45_df6e22-b5> |
Words 45_12f222-57> |
Jump to the first character of the next WORD 45_5d0617-d8> |
WORD 45_c762c4-c2> |
45_1fdef4-70>
| 45_95eca6-21> |
Words 45_ded53e-fe> |
Jump to the first character of the next word 45_2815d1-ad> |
word 45_a4d17b-4c> |
45_e76b3a-c4>
| 45_47ad35-f1> |
Words 45_42562c-23> |
Jump to the last character of the next WORD 45_225373-95> |
End of WORD 45_0e5067-fe> |
45_d4683d-e7>
| 45_b9cc4c-79> |
Words 45_ebace4-48> |
Jump to the last character of the next word 45_14c4a7-db> |
End of word 45_941403-88> |
45_04ec83-f3>
| 45_0e406c-c9> |
Words 45_1427c7-2f> |
Jump to the first character of the previous WORD 45_d07fd8-57> |
Back a WORD 45_e88d10-a8> |
45_93f1c3-76>
| 45_24b01d-c5> |
Words 45_96d8d3-cc> |
Jump to the first character of the previous word 45_57b9e2-5b> |
Back up a word 45_8f3e5f-cb> |
45_df2b14-54>
| 45_6c8c5e-b7> |
Words 45_07cc36-fb> |
Jump to the last character of the previous WORD. 45_a94910-7d> |
Back up to the end of a WORD 45_1a8c1a-08> |
45_9b1def-f2>
| 45_819fa4-33> |
Words 45_d6dabf-f4> |
Jump to the last character of the previous word. 45_35e201-29> |
Back up to the end of a word 45_eea196-b7> |
45_c70de4-89>
| 45_35f1d0-72> |
Line 45_d47463-f9> |
Moves cursor on top of the next instance of the |
Find the character forwards 45_4fb6e7-58> |
45_592720-cd>
| 45_0872bf-61> |
Line 45_7eb852-e0> |
Moves cursor on top of the previous instance of the |
Find the character backwards 45_abd4ef-97> |
45_a854f4-fc>
| 45_9f18c2-7e> |
Line 45_8fe686-10> |
Moves cursor to one character before the next instance of the |
UnTil the character forwards 45_0d70c7-e2> |
45_56540b-6c>
| 45_c55a8d-86> |
Line 45_6d1002-08> |
Moves cursor to one character before the previous instance of the |
UnTil the character backwards 45_b167b7-9a> |
45_529ae1-1b>
| 45_14ca16-a3> |
Sentence 45_f0cbb8-c9> |
Jump to the first character of the next sentence. 45_9c86c7-fb> |
In code, |
45_07c8b3-7d>
| 45_242561-b7> |
Sentence 45_af9637-18> |
Jump to the first character of the previous sentence 45_0a76cb-fd> |
In code, |
45_190332-ae>
| 45_ec6868-ab> |
Paragraph 45_4ac3ce-2a> |
Jump to next paragraph 45_8890af-f3> |
In code, |
45_c7f931-e0>
| 45_ae12bc-e9> |
Paragraph 45_5f7832-8a> |
Jump to previous paragraph 45_3152ef-56> |
In code, |
45_f854a3-7a>
| 45_1b3d0e-0e> |
Character 45_5138eb-2a> |
Left 45_378c34-5f> | 45_d9484f-b8> |
45_384eb3-40>
| 45_a8684c-ee> |
Character 45_8e8f6c-7c> |
Down 45_ba1bac-03> | 45_714cb5-49> |
45_6e29bd-c4>
| 45_919167-71> |
Character 45_8c9680-1a> |
Up 45_7944ff-62> | 45_2008d0-b1> |
45_76757f-ba>
| 45_273d6a-21> |
Character 45_7a420d-08> |
Right 45_3dcd6a-21> | 45_b074b0-17> |
45_808592-3e>
| 45_c06b39-33> |
Matcher 45_77fb53-62> |
Jump to the matching brace under the cursor (can be used on either opening or closing brace). Works on the following braces: |
The percentage symbol is made of a slash and two matching circles, like two matching braces. 45_bd91da-24> |
45_384412-f1>
| 45_434841-29> |
Matcher 45_c69ffc-b3> |
Jumps to the next instance of the word. Uses the non-symbol word underneath the cursor. Otherwise it jumps to the next word if cursor is on whitespace or a symbol. 45_e314a5-8f> |
Symmetrical with # key on your keyboard if you think of the 1 and 0 keys as the boundaries. 45_c02dc4-ab> |
45_e3c679-fa>
| 45_2a2e65-9c> |
Matcher 45_cf33da-33> |
Jumps to the previous instance of the word. Uses the non-symbol word underneath the cursor. Otherwise it jumps to the next word if cursor is on whitespace or a symbol. 45_3194b4-db> |
This symbol is sometimes called a “hash”. This finds a word like a hash function uses a “hash” to find a value. (It’s not perfect, but maybe you’ll remember this even better). 45_0132f4-a5> |
45_bb2ea0-6e>
| 45_e46586-f7> |
Cursor/Screen 45_3fee20-6e> |
Move cursor to the top of the screen. 45_8dc53b-64> |
Move to the HIGH point of the screen 45_ba12aa-7e> |
45_7ee4b6-34>
| 45_f8ab43-55> |
Screen 45_a08c74-03> |
Move cursor to the center of the screen. 45_68d791-7e> |
Move to the MID point of the screen 45_1d4145-47> |
45_e3f15e-e4>
| 45_653719-00> |
Screen 45_52a09d-3e> |
Move cursor to the bottom of the screen. 45_2488a7-1c> |
Move to the LOW point of the screen 45_a190cb-74> |
45_1a6cd2-7e>
| 45_345199-48> |
Screen 45_836f99-ef> |
Move screen to place cursor in the middle 45_d7b6f5-65> |
Recenter the screen to my cursor 45_2e61c1-bf> |
45_c3c211-1e>
| 45_61b2a5-69> |
Screen 45_c61f39-a2> |
Move screen to place cursor at the top 45_3c48b8-10> |
Recenter the screen so my cursor is at the TOP 45_b44987-45> |
45_6716f6-c0>
| 45_76cff0-46> |
Screen 45_268d76-d1> |
Move screen to place cursor at the bottom 45_d8c417-7e> |
Recenter the screen so my cursor is at the BOTTOM 45_6f8ba8-77> |
45_50694f-5d>
| 45_ae52f8-87> |
Repeat 45_2e43aa-43> |
Repeat movement in same direction. If direction was backwards, this movement will go forwards. 45_0be2b5-52> |
It’s easy to jump back and forth with |
45_e96737-b4>
| 45_c46b67-e8> |
Repeat 45_f32072-8a> |
Repeat movement in same direction. If direction was backwards, this movement will also be backwards. 45_4236e5-ac> |
It’s easy to jump back and forth with |
