Does jedi-vim conflict with YouCompleteMe?

丶灬走出姿态 提交于 2019-12-03 05:54:53

The most obvious conflict is not knowing whether you are using YCM or Jedi for autocompletion. In that case the simplest thing to do is to disable Jedi's autocompletion with a line in .vimrc, and use YCM's awesome (Jedi-powered for Python) autocomplete everywhere.

let g:jedi#completions_enabled = 0

The key mappings are not too bad. Both plugins map <leader>d (where <leader> defaults to \) but it doesn't matter, Jedi will override \d in Python files only and that particular YCM feature is not supported in Python.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!