0

Once I got the word with # or * how can go backward that command to not highlight the words.

1 Answers1

0

What is your goal, here?

If you want to go back to the previous match, then you could use * after a # or # after a *, or maybe :help ctrl-o as a direction-agnostic alternative.

If you want to stay where you are but disable the search highlighting, then the proper way is to use :help :nohlsearch. This is sadly cumbersome and there is no built-in way to do that automatically so vimmers have come up with many workarounds like the one suggested by @mattb in the comments. There are also a couple of plugins for that.

romainl
  • 186,200
  • 21
  • 280
  • 313