- 论坛徽章:
- 0
|
本帖最后由 愚人陈 于 2014-08-30 21:12 编辑
回复 1# Woody107
vim 的话,可以这个:
'hlsearch' 'hls' boolean (default off) global
{not in Vi}
{not available when compiled without the
|+extra_search| feature}
When there is a previous search pattern, highlight all its matches. The type of highlighting used can be set with the 'l' occasion in the 'highlight' option. This uses the "Search" highlight group by default. Note that only the matching text is highlighted, any offsets are not applied.
See also: 'incsearch' and |:match|.
When you get bored looking at the highlighted matches, you can turn it off with |:nohlsearch|. This does not change the option value, as soon as you use a search command, the highlighting comes back.
|
|