我通過apt-get安裝了clang-format-3.8
。 現在我嘗試在gVim中使用它,但它不起作用。 我檢查了並且在文件夾/usr/share/vim/addons/syntax
中存在clang-format-3.8。clang-format不能在gVim下工作
但是,當我在vim的命令行中輸入:pyf /usr/share/vim/addons/syntax/clang-format-3.8.py
,它返回:
E319: Sorry, the command is not available in this version
。
我在Ubuntu 16.04下使用gVim 7.4。
Ubuntu中的Vim是用Python 3而不是Python 2編譯的。你需要用Python 2編譯你自己的vim來獲得插件的工作 – Danh