(bug) vim freezes and loops forever (uses 100% CPU) in syntax.c

2007-12-02 Fir de Conversatie Dominique Pelle
Hi I can reproduce a vim bug filed in Ubuntu launchpad using the latest vim-7.1 (Patches 1-166). Here is a link to the original bug description: https://bugs.launchpad.net/ubuntu/+source/vim/+bug/68960 Here is how I can reproduce it. I did not use '-u NONE', because standard plugins need to

Re: `match()` with branches [and a patch]

2007-12-02 Fir de Conversatie Bram Moolenaar
Nico Weber wrote: Attached is a patch to filetype.vim that adds objc detection for .h files. I don't know if this is of general interest, but I think so. I wonder how often the detection will fail. @interface and @end could appear in a comment of a C or C++ file, at least. Esp. when

Re: `match()` with branches [and a patch]

2007-12-02 Fir de Conversatie Nico Weber
I wonder how often the detection will fail. @interface and @end could appear in a comment of a C or C++ file, at least. Esp. when using something like doxygen. What about '[EMAIL PROTECTED]|[EMAIL PROTECTED]' (and maybe throw in a '\|[EMAIL PROTECTED]' at the end for good measure)?

Re: (bug) vim freezes and loops forever (uses 100% CPU) in syntax.c

2007-12-02 Fir de Conversatie Bram Moolenaar
Dominique Pelle wrote: Hi I can reproduce a vim bug filed in Ubuntu launchpad using the latest vim-7.1 (Patches 1-166). Here is a link to the original bug description: https://bugs.launchpad.net/ubuntu/+source/vim/+bug/68960 Here is how I can reproduce it. I did not use '-u NONE',

Re: `match()` with branches [and a patch]

2007-12-02 Fir de Conversatie Bram Moolenaar
Nico Weber wrote: I wonder how often the detection will fail. @interface and @end could appear in a comment of a C or C++ file, at least. Esp. when using something like doxygen. What about '[EMAIL PROTECTED]|[EMAIL PROTECTED]' (and maybe throw in a '\|[EMAIL PROTECTED]' at

Re: vim scrolling painfully slow

2007-12-02 Fir de Conversatie Vladimir Marek
Do you have syntax highlighting enabled? If so, try turning it off and see if that helps. It can take vim a long time to highlight files with long lines. Did not notice differences with syntax on/off. Both were equally slow. I guess that cat-ing file, or viewing it in less is faster

Re: encrypt/decrypt functions for a session

2007-12-02 Fir de Conversatie Yakov Lerner
Charles E Campbell wrote: Any good way to get the vim process's pid? How about under Windows? Maybe a patch to add getpid() function to vimscript is not bad idea ? Even without relation to Charles ciphering troubles. Can this be added to the todo ? Yakov

Re: vim scrolling painfully slow

2007-12-02 Fir de Conversatie Dominique Pelle
On Nov 18, 2007 8:26 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I connect from windows xp to solaris using telnet. I was scrolling using vim editor and saw something strange. If I do a Ctrl-F twice in succession, the first screen gets updated quickly (almost in no time) but the second