Re: Visual Studio 2005 and gvim

2006-09-26 Thread Thore B . Karlsen
On Tue, 26 Sep 2006 13:13:46 +0300, Stavros Tsolakos [EMAIL PROTECTED] wrote: Hi all. I am forced to work with VS2005, but I have been using vim for the last 5 years now and I find using another editor quite impossible. I have noticed that the plugin VisVim.dll does not work with VS2005. I

Re: foldmethod=expr very slow

2006-07-26 Thread Thore B . Karlsen
On Wed, 26 Jul 2006 11:16:31 -0400, Cory Echols [EMAIL PROTECTED] wrote: set foldexpr=GetFoldLevel() function! GetFoldLevel() let line_text = getline(v:lnum) let left_idx = (stridx(line_text, '{') = 0) let right_idx = (stridx(line_text, '}') = 0) if left_idx

Re: foldmethod=expr very slow

2006-07-26 Thread Thore B . Karlsen
On Wed, 26 Jul 2006 14:05:45 -0400, Cory Echols [EMAIL PROTECTED] wrote: In other words, I would expect vim to continuously evaluate the foldexpr on the current line for every character I typed, and not do anything else until the fold level changed. I once wrote a foldexpression that kept

Re: foldmethod=expr very slow

2006-07-26 Thread Thore B . Karlsen
On Wed, 26 Jul 2006 17:19:42 -0400, Benji Fisher [EMAIL PROTECTED] wrote: Well, I think I've found a solution that works for me. It turns out that what was causing my problems was where vim interpreted a number following a marker as a fold level. A line like this would mess up my folds:

foldmethod=expr very slow

2006-07-24 Thread Thore B . Karlsen
I use foldmethod=expr with the following foldexpr: set foldexpr=GetFoldLevel(v:lnum) function! GetFoldLevel(line) let line_text = getline(a:line) if (line_text =~ '\%({.*}\)\|\%(}.*{\)') return '=' elseif (line_text =~ '{') return a1 elseif (line_text =~ '}')

Re: foldmethod=expr very slow

2006-07-24 Thread Thore B . Karlsen
On Mon, 24 Jul 2006 13:06:47 -0500, Gautam Iyer [EMAIL PROTECTED] wrote: I use foldmethod=expr with the following foldexpr: set foldexpr=GetFoldLevel(v:lnum) function! GetFoldLevel(line) let line_text = getline(a:line) if (line_text =~ '\%({.*}\)\|\%(}.*{\)') return '='