Mikolaj Machowski wrote:

> Create empty file, enter {}, :new, cursor is in new window but parens
> are still highlighted. 

Every window has a cursor position, even though only one is really
active.  Thus the highlighting isn't wrong.

> This example isn't extreme but when returning to previous window in many
> colorschemes it makes hard to notice where cursor is.

Perhaps the colorscheme needs to be fixed?  Note that many colorschemes
have not been updated recently.  The maintainers failed to send me
updated versions (esp. needed for the completion menu).

> This chunk fixes that:
> 
> function RmMH()
>       if exists('w:paren_hl_on') && w:paren_hl_on
>               3match none
>               let w:paren_hl_on = 0
>       endif
> endfunction
> au WinLeave * call RmMH()

So you have a solution if you prefer it this way.

-- 
SOLDIER: What? A swallow carrying a coconut?
ARTHUR:  It could grip it by the husk ...
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Reply via email to