> 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 > > continuously. 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 second, this script ends up calling HIGHLIGHT 40 x 60 x 60 times in one > > hour = 144000. Works perfectly, but... at around the hour, or around the > > 144000th call to HIGHLIGHT, HIGHLIGHT starts making the foreground color > > invisible. You can not read the text on the screen any more. If you do a > > ":" for command, the foreground colors appear but as soon as normal > > execution resumes 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. > > Thanks guys, > > Pablo. > > Hi Pablo > > Could you send a minimalistic script which reproduces the problem. > > Make sure the script sets all required options so it can be started > by something like "$ vim -u NONE -S bug.vim" to make sure it does > not depend on your ~/.vimrc or ~/.vim files. > > Cheers > -- Dominique > Hi All, I have written a very minimal vim script that reproduces the problem. It is a function that does EXECUTEs of many HIGHLIGHT commands, over all main groups, setting guifg and guibg. The outer loop calls this function 3000 times. On my system colors stop displaying correctly after ~2470, and I have to re-start vim. I have another computer and it does a similar thing, but curiously it does not produce any problem on my Asus-EeePC 701 laptop, which uses a non-NVidia chipset for what that's worth. The other two computers use NVidia. If you don't get the problem, you could try doubling the number of loops done by the while. To run bug.vim, simply copy it to say: c:\ for arguments sake ( i use vim on windows xp ) On vim, do: :cd c:\ :so bug.vim The program will start iterating, and you will notice a counter whizzing up at the bottom of the screen. The editor's colors will turn a glaring yellow background, which is normal - not pretty but we're just testing here. Everything will look ok, apart from the glaring background yellow. Then, after a while you should notice that you can't read the text on the editor any more. This is what I'm talking about. All you will see is the glaring yellow background. Hope this helps :))) All the best, 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 -- 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
bug.vim
Description: application/octetstream
