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

108164How to separate consecutive highlighted matches?

Expand Messages
  • Peng Yu
    Oct 1, 2009

      I have the following code in ~/.vimrc, by which I can toggle on or off
      highlight of matches.

      function ToggleHLSearch()
      if &hls
      set nohls
      set hls
      nmap <silent> <C-n> :silent call ToggleHLSearch()<CR>

      But if I have consecutive matches, it is still not easy to see how
      many matches there are. In particular, '\t' can occupy different
      length of spaces, depending the context. Therefore, I would like the
      highlight be nonconsecutive (for example, one pixel with between two
      matches is not highlighted).

      I'm wondering if there is such an option in vim. Thank you!

      You received this message from the "vim_use" maillist.
      For more information, visit http://www.vim.org/maillist.php
    • Show all 2 messages in this topic