我第一次嘗試在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
有人知道我缺少的是什麼?
我認爲你可能會遇到一個line-encoding問題,導致vim無法識別它是什麼的續行(反斜槓 - 換行符)。 – hobbs 2011-05-03 18:59:54