hlsearch VIM Command
How to use hlsearch Command in Linux VIM editor?
hlsearch command is used to highlight every occurrence of the searched string.
- Open the file test.txt
$ vim test.txt
- To highlight the searched string.
- To search and highlight the string 'India' in the file.