exists(*Foo!garbage) = 1 ?

2006-04-29 Thread Srinath Avadhanula
Hi, If there is a function called Foo(), then it looks like exists('*Foo\W.*') evaluates to 1. For example :fun Foo : return 1 :endfun :echo exists('*Foo!asdf') prints 1 This happens not just for functions, but variables etc. also. For variables, I can work around this by

Re: exists(*Foo!garbage) = 1 ?

2006-04-29 Thread Bram Moolenaar
Srinath Avadhanula wrote: If there is a function called Foo(), then it looks like exists('*Foo\W.*') evaluates to 1. For example :fun Foo : return 1 :endfun :echo exists('*Foo!asdf') prints 1 This happens not just for functions, but variables etc. also. For

Re: functions that take much time in load_dummy_buffer() [vimgrep]

2006-04-29 Thread Yakov Lerner
On 4/29/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: I identified which functions are slow and which are fast out of functions called (load_dummy_buffer() + wipe_dummy_buffer()) pair. As I wrote earlier this pair of functions is what slows down vimgrep, not the search.

spell function -- suggestion to do: error rate of a file

2006-04-29 Thread Milan Berta
Hello Vim-Dev, Is there any way how to count bad words in a file which is spelled? Or any function which can show an 'error rate' of a file? For example, the number of bad words per ten words, or a percentage of bad words in a file. I snooped the spell.txt help file thorough and found nothing :(

Install Fails on Windows

2006-04-29 Thread Bill McCarthy
Hello Vim Developers, Compiling with MVC or Ming, the exe files are copied from c:\vim\vim70f\src to c:\vim\vim70f (the usual place). But running install produces the following: [c:\vim\vim70f]install This program sets up the installation of Vim 7.0f04 BETA ERROR: Cannot find

Re: spell function -- suggestion to do: error rate of a file

2006-04-29 Thread Yakov Lerner
On 4/29/06, Milan Berta [EMAIL PROTECTED] wrote: Is there any way how to count bad words in a file which is spelled? Or any function which can show an 'error rate' of a file? The script that does what you want is below, and also attached. Press F5 to activate. This is sample output: Total

Re: Install Fails on Windows

2006-04-29 Thread Bram Moolenaar
Bill McCarthy wrote: Compiling with MVC or Ming, the exe files are copied from c:\vim\vim70f\src to c:\vim\vim70f (the usual place). But running install produces the following: [c:\vim\vim70f]install This program sets up the installation of Vim 7.0f04 BETA ERROR: Cannot

Re: vim70f, spell.txt help-file -- 'trie' at line 1569

2006-04-29 Thread Bram Moolenaar
Milan Berta wrote: I'm not sure, but I read somewhere that also pity mistakes in the help-files should be reported. Here we go: There is a misspelled word in spell.txt help-file at line 1569. IMHO, there should be 'tree' instead of 'trie'. That's actually correct. A trie is a special

RE: Install Fails on Windows

2006-04-29 Thread Suresh Govindachar
Bram Moolenaar wrote: Bill McCarthy wrote: Compiling with MVC or Ming, the exe files are copied from c:\vim\vim70f\src to c:\vim\vim70f (the usual place). But running install produces the following: [c:\vim\vim70f]install This program sets up the