Loading ...
Sorry, an error occurred while loading the content.
 

How do I switch off highlighting?

Expand Messages
  • Kelly Trinh
    Hi everyone, when I do a search (eg :/^), vim highlight every occurrence of the found pattern... this is really annoying! (at least for me) how can I switch
    Message 1 of 4 , Dec 31, 2000
      Hi everyone,

      when I do a search (eg :/^), vim highlight every
      occurrence of the found pattern... this is really
      annoying! (at least for me) how can I switch this off?

      However, I don't want to switch of syntax highlighting (for C++)
      (which is really nice, for me)

      Thanks,

      Kel
    • Morten Brix Pedersen
      ... -- Med venlig hilsen - Sincerely Morten Brix Pedersen - morten@wtf.dk Copenhagen, Denmark.
      Message 2 of 4 , Dec 31, 2000
        On man, jan 01, 2001 at 12:49:46 +1100, Kelly Trinh wrote:
        > Hi everyone,
        >
        > when I do a search (eg :/^), vim highlight every
        > occurrence of the found pattern... this is really
        > annoying! (at least for me) how can I switch this off?

        :set nohlearch

        --
        Med venlig hilsen - Sincerely
        Morten Brix Pedersen - morten@...
        Copenhagen, Denmark.
      • Morten Brix Pedersen
        ... Sorry, it s of course :set nohlsearch :( -- Med venlig hilsen - Sincerely Morten Brix Pedersen - morten@wtf.dk Copenhagen, Denmark.
        Message 3 of 4 , Jan 1, 2001
          On Mon, Jan 01, 2001 at 03:06:19AM +0100, Morten Brix Pedersen wrote:
          > On man, jan 01, 2001 at 12:49:46 +1100, Kelly Trinh wrote:
          > > Hi everyone,
          > >
          > > when I do a search (eg :/^), vim highlight every
          > > occurrence of the found pattern... this is really
          > > annoying! (at least for me) how can I switch this off?
          >
          > :set nohlearch

          Sorry, it's of course :set nohlsearch :(

          --
          Med venlig hilsen - Sincerely
          Morten Brix Pedersen - morten@...
          Copenhagen, Denmark.
        • Benji Fisher
          ... You can also turn off the search highlighting until the next time you ... --Benji Fisher
          Message 4 of 4 , Jan 1, 2001
            Morten Brix Pedersen wrote:
            >
            > On Mon, Jan 01, 2001 at 03:06:19AM +0100, Morten Brix Pedersen wrote:
            > > On man, jan 01, 2001 at 12:49:46 +1100, Kelly Trinh wrote:
            > > > Hi everyone,
            > > >
            > > > when I do a search (eg :/^), vim highlight every
            > > > occurrence of the found pattern... this is really
            > > > annoying! (at least for me) how can I switch this off?
            > >
            > > :set nohlearch
            >
            > Sorry, it's of course :set nohlsearch :(

            You can also turn off the search highlighting until the next time you
            do a search:

            :noh

            --Benji Fisher
          Your message has been successfully submitted and would be delivered to recipients shortly.