normally in vim you can search a word by entering / or ? then enter a word, press n or N to go to the next & previous matching word.
but you can also use * or # to search for a word under the cursor in the current file.
same with / and ? , * key will search for the word from the current cursor position to the end of the file and # key will search for the word from the current cursor position to the top of the file. just keep on pressing * or # to go to the next & previous matching word.
No comments:
Post a Comment