Pablo Contreras wrote:
> Hi All,
> You may think I'm crazy, why would you want to call HIGHLIGHT so many times=
> ??? Because I wrote a color scheme script that updates the highlight contin=
> uously. Each 'time' it calls HIGHLIGHT 40 times to update each major syntax=
> element's name, and if as I did you increase the frequency did once per se=
> cond, this script ends up calling HIGHLIGHT 40 x 60 x 60 times in one hour =
> =3D 144000. Works perfectly, but... at around the hour, or around the 1440=
> 00th call to HIGHLIGHT, HIGHLIGHT starts making the foreground color invisi=
> ble. You can not read the text on the screen any more. If you do a ":" fo=
> r command, the foreground colors appear but as soon as normal execution res=
> umes and my script does more HIGHLIGHTs the ink becomes invisible again.
> As a work around, I have to re-start Vim every hour or so.
You don't mention the highlight command you use. You could try re-using
highlight groups, instead of defining new ones all the times. Because
old groups are never deleted.
--
hundred-and-one symptoms of being an internet addict:
256. You are able to write down over 250 symptoms of being an internet
addict, even though they only asked for 101.
/// 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 ///
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php