Live data from Hacker News

YouCompleteMe - A code-completion engine for Vim

valloric.github.io

11–20 of 78 posts

Re: YouCompleteMe - A code-completion engine for Vim

#12
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...

But you had plenty of time to bitch about it? ;-)

Edit: It suddenly occurred to me just how reliant everyone now is on package managers. Once upon a time, I would think installing a dependency or two before compiling a new toy commonplace, if not expected. Nowadays... it's yak shaving.

Not that I'm no less guilty of this. I've even downloaded AUR helper tools because I'm too lazy to even wget a package and do a makepkg any longer.

Re: YouCompleteMe - A code-completion engine for Vim

#13
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...

I'm pretty sure you can install it with Pathogen as normal. There are just two other points: (1) make sure you have the latest version of vim; (2) you just need to run an install script to finalize it. The script is in the bundle folder you create when cloning the git repo.

Re: YouCompleteMe - A code-completion engine for Vim

#14

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…

you might want to consider clang_complete with ultisnips. it generates tab triggers for objective-c methods.

i tried to add that functionality to youcompleteme, but the main problem with it is that youcompleteme tries to be very generic in completions, therefore there is no real way of knowing what kind of methods you get back from your completion backend. you could hack it to do some regex parsing on method names, but i'd really suggest that if objective-c is your main target go for clangcomplete+ultisnips.

https://github.com/Rip-Rip/clang_complete

https://github.com/SirVer/ultisnips

Re: YouCompleteMe - A code-completion engine for Vim

#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).

Re: YouCompleteMe - A code-completion engine for Vim

#17
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...

You better thank your lucky stars you aren't installing on Windows! Took me many days of tinkering to get this working correctly with clang support, and its still not all the way there yet.

Regardless, amazing vim plugin!

Re: YouCompleteMe - A code-completion engine for Vim

#19
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...

Ditto. Here was my "super-quick installation" experience on OS X:

1. Read through the full page of installation instructions.

2. Update to latest version of MacVim.

3. Go research Vundle because up until now, I've been happily using Pathogen. Install Vundle.

4. Update vimrc file for Vundle, add YCM.

5. Launch vim, note error saying YCM needs installation.

6. Run :BundleInstall, which tells me I should compile and impolitely adding "Read the docs!" (Which docs? The GitHub docs, which tell me I should only need to recompile in rare cases? Or the bundle's vim docs, which didn't exist on my system prior to running this command?)

7. Back to terminal, launch ./install.sh --clang-completer in the YCM directory.

8. Go fix breakfast, return. Compilation eventually completes, no errors.

9. Launch vim, which immediately crashes with error: Vim: Caught deadly signal ABRT

10. Give up and delete any trace of YCM.

In a perfect world maybe I would have an extra hour or two to debug this, run through some regressions but right now I don't. Sounds like a nice plugin, maybe I'll try again in the future.

Post reply on HN