[英]vim - python autoindent not working correctly when set in .vimrc
[英]Errors detected when loading a vim plugin from .vimrc
我已經在debian系統上安裝了vim 7.3以及我從網上下載的一些vimrc。 它曾經在我的其他debian機器上工作正常,但在這里我得到這些錯誤消息,而我加載vim編輯器。
以下是錯誤:
Error detected while processing /home/tejinder/.vim/plugin/gundo.vim:
line 196:
E319: Sorry, the command is not available in this version: python << ENDPYTHON
line 197:
E492: Not an editor command: def asciiedges(seen, rev, parents):
line 199:
E121: Undefined variable: rev
E15: Invalid expression: rev not in seen:
line 221:
E133: :return not inside a function
line 231:
E133: :return not inside a function
line 233:
E133: :return not inside a function
line 235:
E133: :return not inside a function
line 238:
E690: Missing "in" after :for
line 347:
E690: Missing "in" after :for
line 356:
E690: Missing "in" after :for
line 453:
E690: Missing "in" after :for
line 464:
E690: Missing "in" after :for
line 469:
E133: :return not inside a function
line 795:
E170: Missing :endfor
Press ENTER or type command to continue
如果有人能夠弄明白這一點,請指導我。 非常感謝。
這是vimrc源碼: https : //github.com/mitsuhiko/dotfiles/tree/master/vim
在debian上安裝vim-gnome
或vim-nox
如果你沒有系統上的X-server。
$ sudo apt-get install vim-nox
這些版本包括對vim的python支持。
第一個錯誤消息是要查看的消息:“python”在您的vim中不可用。 您可能安裝了“vim-tiny”。 嘗試“apt-get install vim”來獲得更大的構建。 此外,在vim中,您可以使用“:version”命令查看所有選項,以及是否編譯每個選項。 您當前的vim將在顯示的列表中顯示“-python”(表示沒有python,而不是“+ python”)。
你的VIM沒有編譯的python支持。不幸的是我不知道如何處理該發行版,因為我是一個關於通過手動安裝與包系統沖突的東西搞亂Linux系統的真正大師。
你的Python版本是2.4還是更好?
通過運行測試
python --version
在命令行。
vim 7.3是vim的最新版本。 我想,您正在使用舊的.vimrc文件。 排除故障的一個好方法是將~/.vim
移動到~/.vim_backup
並加載vim 7.3以便使用系統默認的vimrc。 看看你是否還有這些錯誤。 並在新的.vimrc
僅加載7.3所需的插件
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.