我想在 ubuntu 14.04 上设置我的 vim 以使用 YCM。按照安装说明,我意识到 14.04 上的原生 vim 不支持 YCM,因此我完全按照如何从源代码安装 vim 的说明进行操作,还将 python config-dir 更改为正确的。
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Nov 13 2016 11:04:57)
Included patches: 1-82
Compiled by ...@ubuntu
Huge version with GTK2 GUI. Features included (+) or not (-):
+acl +file_in_path +mouse_sgr +tag_old_static
+arabic +find_in_path -mouse_sysmouse -tag_any_white
+autocmd +float +mouse_urxvt -tcl
+balloon_eval +folding +mouse_xterm +termguicolors
+browse -footer +multi_byte +terminfo
++builtin_terms +fork() +multi_lang +termresponse
+byte_offset +gettext -mzscheme +textobjects
+channel -hangul_input +netbeans_intg +timers
+cindent +iconv +num64 +title
+clientserver +insert_expand +packages +toolbar
+clipboard +job +path_extra +user_commands
+cmdline_compl +jumplist -perl +vertsplit
+cmdline_hist +keymap +persistent_undo +virtualedit
+cmdline_info +lambda +postscript +visual
+comments +langmap +printer +visualextra
+conceal +libcall +profile +viminfo
+cryptv +linebreak +python/dyn +vreplace
+cscope +lispindent +python3/dyn +wildignore
似乎它安装了对 python 的正确支持?我现在已经尝试了多次,但我无法让它工作。不过,当我打开 vim 时,我得到了这个错误:
YouCompleteMe unavailable: requires Vim compiled with Python (2.6+ or 3.3+) support