更新我的 vim 插件后,我遇到了 vim 自动格式化插件 ( https://github.com/Chiel92/vim-autoformat ) 的问题。
当我运行 :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 包管理器安装了格式化程序,这意味着根据自动格式化文档,应该意味着插件会自动检测它们。
我已经尝试重新安装插件,它没有帮助。