Under vi / vim how the search string

1. the command mode, enter: / String

For example, the search user, input / user

After pressing Enter, vim can be seen to have moved the cursor and highlighting the character string matching

 

2. Check the next match, press n (lowercase n)

 

3. Go to a match, press N (uppercase N)

 

4. After searching, we open another file, also highlighted the discovery, highlighting how close?

       Command mode, enter: nohlsearch may be: set nohlsearch; of course, can be abbreviated, NOH or set noh.

Guess you like

Origin www.cnblogs.com/ningff/p/12077866.html