Thanks for all of the replies. This single question has provided a lot
of useful information. Thanks to the helpful clue of :help cpo-C it is
clear now that the line continuation with backslashes problem has to
do with compatibility options. Adding 'set nocp' to my .vimrc solved
the issue with the php.vim syntax file (and other syntax files). Also
I was not aware of the :version command.
This is on a computer that I am working on now, with vim 7.2. Please
note that this has been the same with all Vim versions I have used so
far on FreeBSD over the last 4 years. I had read about the nocp
option, but somehow not tried it in the initialization file. I am
going to talk about the default installation of VIM on FreeBSD with
the maintainer of the port.
Thanks to all again!
This was the output in Vim when starting a new .php file:
$ vim example.php
Error detected while processing /usr/local/share/vim/vim72/syntax/php.vim:
line 479:
E10: \ should be followed by /, ? or &
line 482:
E10: \ should be followed by /, ? or &
line 488:
E10: \ should be followed by /, ? or &
line 489:
E10: \ should be followed by /, ? or &
line 490:
E10: \ should be followed by /, ? or &
line 491:
E10: \ should be followed by /, ? or &
line 492:
E10: \ should be followed by /, ? or &
line 493:
E10: \ should be followed by /, ? or &
line 494:
E10: \ should be followed by /, ? or &
line 495:
E10: \ should be followed by /, ? or &
line 496:
E10: \ should be followed by /, ? or &
line 497:
E10: \ should be followed by /, ? or &
line 498:
E10: \ should be followed by /, ? or &
line 499:
E10: \ should be followed by /, ? or &
line 500:
E10: \ should be followed by /, ? or &
line 501:
E10: \ should be followed by /, ? or &
line 502:
E10: \ should be followed by /, ? or &
line 503:
E10: \ should be followed by /, ? or &
line 504:
E10: \ should be followed by /, ? or &
line 505:
E10: \ should be followed by /, ? or &
line 511:
E10: \ should be followed by /, ? or &
line 512:
E10: \ should be followed by /, ? or &
line 535:
E10: \ should be followed by /, ? or &
and so on.
Output of :version
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Oct 25 2008 05:25:01)
Included patches: 1-6, 8-14
Compiled by xxx@xxxx
Normal version without GUI. Features included (+) or not (-):
-arabic +autocmd -balloon_eval -browse +builtin_terms +byte_offset
+cindent -clientserver -clipboard +cmdline_compl +cmdline_hist
+cmdline_info
+comments +cryptv -cscope +cursorshape +dialog_con +diff +digraphs
-dnd -ebcdic -emacs_tags +eval +ex_extra +extra_search -farsi
+file_in_path
+find_in_path +float +folding -footer +fork() -gettext -hangul_input
+iconv +insert_expand +jumplist -keymap -langmap +libcall +linebreak
+lispindent
+listcmds +localmap +menu +mksession +modify_fname +mouse -mouseshape
-mouse_dec -mouse_gpm -mouse_jsbterm -mouse_netterm +mouse_sysmouse
+mouse_xterm
+multi_byte +multi_lang -mzscheme -netbeans_intg -osfiletype
+path_extra -perl +postscript +printer -profile -python +quickfix
+reltime -rightleft -ruby
+scrollbind -signs +smartindent -sniff +statusline -sun_workshop
+syntax +tag_binary +tag_old_static -tag_any_white -tcl +terminfo
+termresponse
+textobjects +title -toolbar +user_commands +vertsplit +virtualedit
+visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows
+writebackup
-X11 -xfontset -xim -xsmp -xterm_clipboard -xterm_save
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/local/share/vim"
Compilation: cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include
-O2 -fno-strict-aliasing -pipe
Linking: cc -L/usr/local/lib -o vim -lm -ltermlib -liconv
On Thu, Mar 24, 2011 at 7:50 AM, Jean-Rene David <[email protected]> wrote:
> * Niek Dekker [2011.03.24 03:40]:
>> I am using vim 7.3.121 in FreeBSD 8.1 amd64, installed from
>> ports.
>> [...]
>> However, the syntax coloring configuration files generate errors
>> caused by the line continuation character '\' at the beginning of
>> lines. For instance, in php.vim syntax file are a lot of these line
>> continuations and this generates a couple pages of errors when opening
>> a php file in Vim. [...]
>
> Could you post the first few error messages here? It might help us help
> you.
>
> A couple of generic things to check:
>
> - could you post the output of ':version'? (there's all sorts of
> useful info in that output besides the version number)
>
> - do other file formats give this error?
>
> --
> JR
>
> --
> 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
>
--
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