2011-05-03 61 views
0

我第一次嘗試在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 

有人知道我缺少的是什麼?

+0

我認爲你可能會遇到一個line-encoding問題,導致vim無法識別它是什麼的續行(反斜槓 - 換行符)。 – hobbs 2011-05-03 18:59:54

回答

3

看起來像你還沒有取消設置compatible選項。你有沒有線

set nocompatible 

在你的vimrc的頂部(它必須在任何其他選項之前)?

+2

首先有一個vimrc就足以取消「compatible」。 – hobbs 2011-05-03 18:58:42

+0

它比這更糟糕,當我複製它時,我發了一張我的vimrc的名字。感謝您指出我的方向! – 2011-05-03 19:00:24

+2

@hobbs如果你使用像'vim -u〜/ .vim/vimrc'這樣的別名啓動vim,可能不會。我爲我的插件創建了一個自動化測試套件,並忘記將'set nocompatible'放入使用'-u/path/to/vimrc'源代碼的vimrc中,因爲我不能讓vim使用我自己的vimrc if我想要一個乾淨的測試環境。 – ZyX 2011-05-03 19:14:54

相關問題