2016-02-09 27 views
1

更新我的vim插件後,我遇到了vim autoformat插件(https://github.com/Chiel92/vim-autoformat)的問題。Vim autoformat錯誤

當我運行:自動套用格式,我得到一個錯誤:

對於HTML:

Definition in 'g:formatdef_htmlbeautify' was unsuccessful. 
Definition in 'g:formatdef_tidy_html' was unsuccessful. 
No format definitions were successful. 
Press ENTER or type command to continue 

的C/C++:

Definition in 'g:formatdef_clangformat' was unsuccessful. 
Definition in 'g:formatdef_astyle_c' was unsuccessful. 
No format definitions were successful. 
Press ENTER or type command to continue 

我已經通過apt軟件包安裝在格式化經理,這意味着根據autoformat文檔,應該意味着插件會自動檢測它們。

我已經嘗試重新安裝插件,它沒有幫助。

+0

使用插件的[問題跟蹤器](https://github.com/Chiel92/vim-autoformat/issues)。 – romainl

回答

0

vim-autoformat如果安裝正確,會自動檢測插件。 如果您不想在顯示屏上出現錯誤,請按ENTER鍵或輸入命令繼續,只需鍵入:silent Autoformat

+0

沉默無濟於事。它沒有格式化我的代碼 - 它只是給出了我描述的錯誤信息。格式化程序通過apt軟件包管理器安裝。 – tuoppimas

0

我本週在Debian機器上遇到了同樣的問題。

~/.vim/bundles(與Vundle一起安裝)中刪除vim-autoformat文件夾並再次安裝(:PluginInstall)後,再次按預期工作。

+0

謝謝。這爲我修好了。奇怪的是,當問題首次發生時,重新安裝並沒有解決問題。 – tuoppimas