incsearch VIM Command

How to use incsearch Command in Linux VIM editor?

Explanation


Incremental Search command is used to highlight the searching string while typing.

Usage:

:set incsearch

Example:

  • Open the file test.txt
    $ vim test.txt
  • To highlight incremental search
    :set incsearch
  • To search the string 'India' in the file.
    Enter /India
    incsearch Vim Command

Ask Questions

Ask Question