On Sat, Apr 15, 2006 at 03:13:23AM +0800, Ty Morrison wrote:

> Editing C code i'm seeing this problem a lot I had to stop using vim 7
> for 6 because of it.
> 
> Sometimes it happens just from arrowing up sometimes it happents
> jumping from closing -> open brace.
> 
> Sometimes it completely locks up vim, sometimes it can recover. I saw
> this in the b release also fyi.
> 
> The error is:
> 
> Error detected while processing function <SNR>10_Highlight_Matching_Pair:
> line   41:
> E121: Undefined variable: c_lnu
> 
> complete lockup have to kill -9 vim
> 
> Error detected while processing function <SNR>10_Highlight_Matching_Pair:
> line   49:
> E121: Undefined variable: c_lnu
> Press ENTER or type command to continue
> Error detected while processing function <SNR>10_Highlight_Matching_Pair:
> line   49:
> E15: Invalid expression: c_lnu - 100
> Press ENTER or type command to continue
> 
> resumes normal operation after

That's a typo in the vim script matchparen.vim. Easily fixable:

    :e $VIMRUNTIME/plugin/matchparen.vim
    :s/c_lnu\>/c_lnum/g

should fix your errors. Alternately, you should look at the patch Benji
Fisher posted to this list (it improves performance, but I haven't been
able to test it yet).

GI

-- 
"Buffet" -- A French word that means 'Get up and get it yourself!'

Reply via email to