How to get rid of search highlight in Vim

前端 未结 7 1143
误落风尘
误落风尘 2020-12-13 03:25

I have :set hlsearch as default value.

When I search for something, search terms get highlighted. However many times I want to get rid of the highlight,

7条回答
  •  南方客
    南方客 (楼主)
    2020-12-13 04:00

    :noremap   :nohls
    

    This would redraw the screen and clear any search terms with Control-L, handy :) easier than reaching up to the F keys.

提交回复
热议问题