Is there a shortcut in Vim for going to the next word which is the same as the word cursor is on? It should work without typing the word with search command /
.
* goes to the next matching word and # goes to the previous matching word. * is so useful it's sometimes called the super star.
* and # are your friends ( forward and backward directions respectively )
To search the current word under the cursor use '*'.
to search backwards for current cursor word use '#'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With