w VIM Command

How to use w Command in Linux VIM editor?


This command is used to move the cursor to the next word. The cursor will move to the first letter of the next word. Here we can use numeric prefix to move cursor after multiple words together.




  • Open the file test.txt
    $ vim test.txt
  • You can view that the cursor is focused on the first word.
    W VIM Command
  • To move the cursor to next word
    Press w
    Move Cursor to Next Word VIM
  • To move the cursor to third word from the current position.
    Press 3w
    W VIM Command Editor

Ask Questions

Ask Question