user_id and user_id = 2 contents in the Highlight tag file
(1) VI filename
(2) Use/(file from the top down to find)
/user_id (Highlight Mark User_ID)
/user_id = 2 (Highlight mark user_id = 2)
Press the N key individually for the next lookup
(3) use. (Files from the bottom to look up)
? user_id (Highlight user_id)
? user_id = 2 (Highlight mark user_id = 2)
Press the N key individually to make the previous lookup
/pattern<enter>: Looking down pattern matching string
? pattern<enter>: Looking up pattern matching strings
After using the Find command, use the following two keys to quickly find:
N: Continue searching in the same direction
N: Find in reverse direction
String matching
Pattern is a string that needs to be matched, for example:
1: /abc<enter> #查找abc
2: /ABC <Enter>
In addition, pattern can also use some special characters, including (/, ^, $, *,.), the first three of which are VI and VIM general, "/" for the escape character.
1: /^abc<enter>
2: /test$<enter>
3: //^test<enter> #查找 ^tabc string