Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pycharm-like autocompletion in Vim

Is there a way to make "Vim's autocomplete" act like Pycharms?

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.

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?

like image 722
JoleMile Avatar asked Oct 22 '14 20:10

JoleMile


1 Answers

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'

Then save file and type :PluginInstall for install plugins . ( if your plugin manager is Vundle , you must use Plugin instead of Plug )

Another way

You can use ultisnips .

like image 144
mo1ein Avatar answered Oct 20 '22 22:10

mo1ein