

But what is a word exactly? A word in Vim is either: So w, b, e and ge let you move word by word in Vim. For instance, you can remember that w lets you move from word to word by associating it with word, or that b lets you move word to word backwards by associating it with back.įollowing this technique, you'll find that you can learn and recall a lot of commands with little effort. At the beginning though, you'll need to learn them one by one.Ī great way to learn Vim commands is by using mnemonics like associating a letter to a word that is easier to remember. In time, when you become an experienced Vim user, the commands will become second nature, reflexive and automatic. Learn Commands With The Help of Mnemonics

Here’s a condensed list of the most useful ones, and when and how to use them: Move Horizontally Word By Word I find they work great in tandem with Visual Studio Code native Go To features like Go To File and Go To Symbol. There are many of them, and each one is best suited for different types and lengths of movement.

They are commands that when typed move the cursor around with high speed and precision. Motions (as in movements) are how you move around in Vim.
