Hash (#) VIM Command
How to use Hash (#) Command in Linux VIM editor?
# command is used to move the previous occurrence of searched string. After a string is searched the cursor will be focused on the first occurrence of the string from the current position, to move the cursor to the previous occurrence we can use this command.
- Open the file test.txt using the command
$ vim test.txt
- We can notice the following text in the file.
Hiox India Vim Tutorial Hscripts
India is seventh largest country in world
I love India, I'm proud to be an Indian
- Search of letter India is done using this command
- The cursor will point to the first occurrence of the string from the current position.
- To move the cursor to the previous occurrence