l9.vim插件导致无效的表达式错误
我第一次尝试在Linux上编译vim(redhat),所以请耐心等待。l9.vim插件导致无效的表达式错误
我一直都很高兴地使用MacVim一年,但最近我一直需要通过ssh在linux服务器上编辑更多文件。我已经厌倦了安装在这些服务器上的vim,所以我想从源代码编译vim 7.3并让我的插件运行。我编译和安装罚款,但我觉得我失去了一个图书馆或其他一些根本的东西,因为当我尝试运行VIM,我得到:
Error detected while processing function l9#guardScriptLoading:
line 7:
E15: Invalid expression:
E15: Invalid expression: a:l9Version > 0 && (a:l9Version > s:L9_VERSION_CURRENT ||
E15: Invalid expression:
E15: Invalid expression: a:l9Version > 0 && (a:l9Version > s:L9_VERSION_CURRENT ||
line 8:
E10: \ should be followed by /, ? or &
,我不知道这意味着什么。我安装了l9插件,包括自动加载库和插件文件。这是那些很难去的插件之一。
这里就是我的vim编译的样子:
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled May 3 2011 13:00:04)
Compiled by me
Huge version with GTK2 GUI. Features included (+) or not (-):
+arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent
+clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
+conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con_gui +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 -lua +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 +persistent_undo +postscript +printer +profile
+python -python3 +quickfix +reltime +rightleft +ruby +scrollbind +signs
+smartindent -sniff +startuptime +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_interact +xterm_clipboard -xterm_save
有人知道我缺少的是什么?
看起来像你还没有取消设置compatible
选项。你有没有线
set nocompatible
在你的vimrc的顶部(它必须在任何其他选项之前)?
首先有一个vimrc就足以取消“compatible”。 – hobbs 2011-05-03 18:58:42
它比这更糟糕,当我复制它时,我发了一张我的vimrc的名字。感谢您指出我的方向! – 2011-05-03 19:00:24
@hobbs如果你使用像'vim -u〜/ .vim/vimrc'这样的别名启动vim,可能不会。我为我的插件创建了一个自动化测试套件,并忘记将'set nocompatible'放入使用'-u/path/to/vimrc'源代码的vimrc中,因为我不能让vim使用我自己的vimrc if我想要一个干净的测试环境。 – ZyX 2011-05-03 19:14:54
我认为你可能会遇到一个line-encoding问题,导致vim无法识别它是什么的续行(反斜杠 - 换行符)。 – hobbs 2011-05-03 18:59:54