Vim中类似Pycharm的自动补全 [英] Pycharm-like autocompletion in Vim

查看:209
本文介绍了Vim中类似Pycharm的自动补全的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有办法使"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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆