l9.vim 插件导致无效表达式错误

发布于 2024-11-04 17:19:49 字数 2064 浏览 0 评论 0原文

我第一次尝试在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

醉殇 2024-11-11 17:19:49

您似乎尚未取消设置兼容选项。 是否有一行(它必须位于任何其他选项之前)?

set nocompatible

你的 vimrc 顶部

Looks like you have not unset compatible option. Do you have a line

set nocompatible

at a top of your vimrc (it must go before any other option)?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文