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.
- To move the cursor to next word
- To move the cursor to third word from the current position.