You are not logged in.

#1 2016-02-23 13:42:01

JJK
Member
Registered: 2013-10-24
Posts: 56

Vim install youcompleteme

I have installed the package vim-youcompleteme-git from aur.

I want to use the autocomplete mainly for c++ programming. I have placed the sample .ycm_extra_conf.py that was provided by the author of YCM in the .vim directory.
I added the following line to my .vimrc:
let g:ycm_global_ycm_extra_conf = "~/.vim/.ycm_extra_conf.py"

after that I magically expected autocomplete to work which apparently was not the case:
No suggestins appeared either when typing #inclu in a .cpp file and trying to edit a python file.

Did I miss some instalation step?
Do I need to enable the plugin in my .vimrc?

Hope you can help me,

JJK

Offline

#2 2016-02-23 14:54:39

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: Vim install youcompleteme

Have you tried not using pacman for that plugin? It worked for me, you just have to carefully read the installation guide.

Offline

#3 2016-02-23 15:13:30

termNinja
Member
Registered: 2016-02-21
Posts: 19

Re: Vim install youcompleteme

It's very important to read the docs very carefully and invest a bit of time in it. I used YCM for some C and C++ development and it works fine. Once you set it up, you can download a Vim plugin that is a python script that you run, give it an addr to your project Makefile, and it generates autocomplete for YCM.

Good luck, make sure to post here if you set it up. I'll also be giving it a go soon cuz I installed Arch just recently.

Cheers

Offline

#4 2016-02-23 22:45:11

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Vim install youcompleteme

Offline

#5 2016-02-23 23:34:28

bulletmark
Member
From: Brisbane, Australia
Registered: 2013-10-22
Posts: 714

Re: Vim install youcompleteme

I strongly recommend using vundle to install and manage/update all vim plugins.

Offline

#6 2016-02-27 18:32:31

termNinja
Member
Registered: 2016-02-21
Posts: 19

Re: Vim install youcompleteme

bulletmark wrote:

I strongly recommend using vundle to install and manage/update all vim plugins.

I agree, but you still need to make additional steps to install YCM for Vim.

Offline

Board footer

Powered by FluxBB