>> I am running vim 7.2. When I try to edit a .fvwm2rc, I get syntax errors in
>> fvwm.vim. It seems that this is not updated for vim 7.2.
>>
>> I found a message by Googling which referred to an updated file for vim
>> 7, at http://www.mail-archive.com/fvwm@lists.math.uh.edu/msg16116.html --
> That's old.
>
> I've not got any problems here using the file fvwm.vim at all --
> what's your filetype set to? ISTR if it's not "fvwm", then you might
> run into problems, but until I can see what errors you're getting, I
> wouldn't want to speculate.
I'm running a newly installed Mandriva Linux 2010.1.  It has a vim that
claims to be version 7.2.284.
The file is ".fvwm2rc", which according to the vim documentation is already
recognized--you only need to set the filetype for files other than .fvwmrc
and .fvwm2rc.
These are the errors I get:
Error detected while processing /usr/share/vim/syntax/fvwm.vim:
line   29:
E399: Not enough arguments: syntax region fvwmModArg^I^Icontained contains=fvwmS
tring,fvwmRGBValue
line   32:
E399: Not enough arguments: syntax region fvwmString^I^Icontains=fvwmBackslash s
tart='"'
line   33:
E10: \ should be followed by /, ? or &
line   34:
E399: Not enough arguments: syntax region fvwmString^I^Icontains=fvwmBackslash s
tart='`'
line   35:
E10: \ should be followed by /, ? or &
line   36:
E399: Not enough arguments: syntax region fvwmString^I^Icontains=fvwmBackslash s
tart="'"
line   37:
E10: \ should be followed by /, ? or &
line   46:
E399: Not enough arguments: syntax region fvwmComment^I^Icontains=@Spell
line   47:
E10: \ should be followed by /, ? or &
line   51:
E10: \ should be followed by /, ? or &
line   69:
E10: \ should be followed by /, ? or &
Followed by a whole lot more repeats of the same error with different line
numbers.
The fvwm.vim file contains this at line 29:
syn region  fvwmModArg          contained contains=fvwmString,fvwmRGBValue
                                 \ start='.' skip='\\$' end='$'
syn region  fvwmString          contains=fvwmBackslash start='"'
                                 \ matchgroup=fvwmBackslash skip='\v\\"' end='"'
syn region  fvwmString          contains=fvwmBackslash start='`'
                                 \ matchgroup=fvwmBackslash skip='\v\\`' end='`'
syn region  fvwmString          contains=fvwmBackslash start="'"
                                 \ matchgroup=fvwmBackslash skip="\v\\'" end="'"
syn match   fvwmBackslash       contained '\\[^"'`]'
-- 
You received this message from the "vim_use" 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
 
No comments:
Post a Comment