Get rid of Vim's highlight after searching text

前端 未结 8 2091
梦如初夏
梦如初夏 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:14

    I'm lazy and type something like /asdf then slap the RETURN key.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题