-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Bram Moolenaar
Sent: 10 October 2010 09:35
To: Pablo Contreras
Cc: [email protected]
Subject: Re: (about highlight)


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.

I wanted to apologize for all the trouble I cause, it appears that there is
something fishy with my graphics card, because I tried those
multiple-highlight statements and they work perfectly on my laptop.  Either
my graphics card or my Windows XP is fishy and may need to be re-installed.
If I find out any more I will let you guys know.
Sorry for all the trouble.
Thanks,
Pablo.

-- 
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

Raspunde prin e-mail lui