Go to the next/prev occurrence of a word in Vim
In Vim, if your cursor is over a word and you want to go to the next occurrence of that word in the file, just press *
.
If you want to go to previous occurrence of the word, just press #
.
In Vim, if your cursor is over a word and you want to go to the next occurrence of that word in the file, just press *
.
If you want to go to previous occurrence of the word, just press #
.