Vim: highlight all matches in incsearch

后端 未结 3 1462
轻奢々
轻奢々 2020-12-28 21:06

I\'m using the incsearch and hlsearch options. All matches are highlighted after I press enter, but only the first one as I type. I\'d like to high

3条回答
  •  忘掉有多难
    2020-12-28 21:36

    Maybe I'm wrong about this because the answer seems deceptively simple, but just enable incsearch and hlsearch at the same time with:

    set incsearch
    set hlsearch
    

提交回复
热议问题