Live data from Hacker News

YouCompleteMe - A code-completion engine for Vim

valloric.github.io

21–30 of 78 posts

Re: YouCompleteMe - A code-completion engine for Vim

#23

Sadly, it is still not working too well with Objective-C, which is currently my main language (1). Luckily, unofficial VIM plugins for XCode like XVim (2) or VIEmu (3) are getting better and better, so at least I can use vim bindings for objective-c now, too. Nevertheless, good clang support in Vim would still be great, so that I could tap into the huge amount of vim plugins during objc development. [1] https://githu…

Thanks, that's good to know. I have been using XVim for a while now. It can be quirky, but it's amazing what JugglerShu has been able to pull off.

Have you used both Xvim and ViEmu? How does ViEmu compare?

Re: YouCompleteMe - A code-completion engine for Vim

#24
post #9

How the hell is that a "super-quick installation" for Mac OS? Can anyone figure out an actually quick way to install it with Pathogen? PS: the plugin looks great - I'm just bitching about the installation docs because I'm in the middle of 10 different things at the moment and don't have the time to engage in a potential yak shaving expedition...

1. brew install vim cmake

2. git clone https://github.com/Valloric/YouCompleteMe.git ~/.vim/bundle/YouCompleteMe

3. cd ~/.vim/bundle/YouCompleteMe

4. ./install.sh --clang-completer

Re: YouCompleteMe - A code-completion engine for Vim

#25
I could not install it in my work machine as the OS is windows. As a replacement I use neocomplete.vim[1]. It is very fast, responsive, has fuzzy auto-complete. But it requires vim version greater than 7.3.885 and vim compiled with lua bindings. Still it is small annoyance compared to YCM installation procedure.

[1]https://github.com/Shougo/neocomplete.vim

Re: YouCompleteMe - A code-completion engine for Vim

#26
post #9

How the hell is that a "super-quick installation" for Mac OS? Can anyone figure out an actually quick way to install it with Pathogen? PS: the plugin looks great - I'm just bitching about the installation docs because I'm in the middle of 10 different things at the moment and don't have the time to engage in a potential yak shaving expedition...

1. brew install vim cmake 2. git clone https://github.com/Valloric/YouCompleteMe.git ~/.vim/bundle/YouCompleteMe 3. cd ~/.vim/bundle/YouCompleteMe 4. ./install.sh --clang-completer

I just had to rename vim in /usr/bin so it'd pick up the /usr/local/bin homebrewed version instead, but yeah, this.

Re: YouCompleteMe - A code-completion engine for Vim

#27
post #26

Earlier quoted context omitted.

1. brew install vim cmake 2. git clone https://github.com/Valloric/YouCompleteMe.git ~/.vim/bundle/YouCompleteMe 3. cd ~/.vim/bundle/YouCompleteMe 4. ./install.sh --clang-completer

I just had to rename vim in /usr/bin so it'd pick up the /usr/local/bin homebrewed version instead, but yeah, this.

That likely means your PATH is out of order, if ordered correctly /usr/local/bin should override /usr/bin. Can save you needing to do that in the future.

Re: YouCompleteMe - A code-completion engine for Vim

#29
post #28

I use this with Eclim to enhance java writing. The Vrapper plugin for Eclipse is getting very good, but sometimes it's nice to work directly in vim.

I've never gotten eclim to fully work before. I don't do a lot of java nowadays but I just got back into a project where parts of the codebase are in java. So I might try it once again. What has your experience been so far?

Re: YouCompleteMe - A code-completion engine for Vim

#30
post #16

I highly recommend this plugin! I find it really snappy on my projects. I haven't had the opportunity to try it on any gigantic projects, but I have found configuration files for YCM in the Chromium source tree which suggests that it scales nicely (assuming it's usable on the Chromium tree).

I haven't tried it on anything but rather small projects in C: 10-15 source files/modules, but I prefer vim and ycm to XCode for coding. As a matter of fact, all other code completion thingy's I use seem a bit crappy in comparision, with the excempt of bbautocomplete.

Time to install the new beta of vim, and check out ycm! :)

Post reply on HN