Vim中类似Pycharm的自动补全 [英] Pycharm-like autocompletion in Vim
问题描述
是否有办法使"Vim的自动完成"行为像皮卡姆一样?
Is there a way to make "Vim's autocomplete" act like Pycharms?
我尝试了YouCompleteMe,但是在输入第一个字母后,它没有显示所有可能的函数和变量.我觉得这非常有用,因为我还是一个初学者.
I tried YouCompleteMe but it doesn't show all the possible functions and variables after the first letter typed. I find this extremely useful because I'm still a beginner.
我正在为C ++寻找相同的东西. 我不想使用Pycharm和Clion的原因是硬件限制,我真的很喜欢Vim.
I'm looking for the same thing for C++. The reason I don't want to use Pycharm and Clion is hardware limitation and I really like Vim.
可以通过某种方式完成吗?
Can it be done somehow?
推荐答案
我使用 deoplete .首先安装它,然后为cpp安装 deoplete-clangx 和
I use deoplete . first install it then install deoplete-clangx for cpp and deoplete-jedi for python . If you have plugin manager, add these lines to your ~/.vimrc :
Plug 'Shougo/deoplete.nvim'
Plug 'Shougo/deoplete-clangx'
Plug 'deoplete-plugins/deoplete-jedi'
然后保存文件,并输入:PluginInstall
作为安装插件.
(如果您的插件管理器是 Vundle ,则必须使用Plugin
而不是Plug
)
Then save file and type :PluginInstall
for install plugins .
( if your plugin manager is Vundle , you must use Plugin
instead of Plug
)
另一种方式
您可以使用 ultisnips .
这篇关于Vim中类似Pycharm的自动补全的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!