l9.vim 插件导致无效表达式错误
我第一次尝试在 linux (redhat) 上编译 vim,所以请耐心等待。
我已经愉快地使用 MacVim 一年了,但最近我需要在 Linux 服务器上通过 ssh 编辑更多文件。我已经厌倦了这些服务器上安装的 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
有人知道我缺少什么吗?
My first attempt at compiling vim on linux (redhat), so bear with me.
I've been happily using MacVim for a year now, but recently i've been needing to edit more files over ssh on a linux server. I've been getting fed up with the vim installed on these servers, so i'm trying to compile vim 7.3 from source and get my plugins running. I compile and install fine, but I think I'm missing a library or some other fundamental thing, because when I try to run vim I get:
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 &
and I have no idea what this means. I have the l9 plugin installed, both the autoload library and the plugin files. This is one of those plugins that's hard to go without though.
here's what my vim compile looks like:
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
anybody know what I'm missing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您似乎尚未取消设置
兼容
选项。 是否有一行(它必须位于任何其他选项之前)?你的 vimrc 顶部
Looks like you have not unset
compatible
option. Do you have a lineat a top of your vimrc (it must go before any other option)?