vimvi

How to move one word left in the vi editor


I use the shortcut w to move the cursor one word right. Is there a shortcut to move a word left?


Solution

  • Use b to move back one word.

    Use w to move forward one word.

    And here is a cheat sheet that might be useful for you:

    Vim Cheat Sheet

    Source: Graphical vi-vim Cheat Sheet and Tutorial