Get rid of Vim's highlight after searching text

前端 未结 8 2096
梦如初夏
梦如初夏 2020-12-02 08:37

In VIM, after finding text with \"/\" command, that text remains highlighted.

What is the command to remove that? I don\'t want to remove highlighting capability at

8条回答
  •  再見小時候
    2020-12-02 09:17

    You can toggle it with

    :set hls!
    

    Of course a quick and dirty alternative is to do another search for gibberish:

    /asdsad
    

    I usually bind a key to :set hls! to make this easy and use the gibberish approach when I'm in vim on some machine I don't have my profile installed on.

提交回复
热议问题