1 大小写
set smartcase
set ignorecase
set noignorecase
2 When set nowrapscan,when the search hits the end of the file,
an error message displays
set nowrapscan / wrapscan
3 The * command searches for the word under the cursor.
The # command does an instat word search in the backward direction
4 For the forward search command(/),the offset is specified by appending a slash(/) and the offset ,as follows:
/string/num
/const/2
this command searches for the pattern const and then moves to the beginning of the second line past the pattern
If the offset begins with 'b' and a number ,the cursor moves to the beginning of the patern ,and then travels the 'number' of characters,
The 'e' offset indicates an offset from the end of the match.Without a number if moves the cursor onto the last charactor of the match.
5 set incsearch,这个是在搜索过程中动态高亮