Live data from Hacker News

YouCompleteMe, a Fast, As-You-Type, Fuzzy-Search Code Completion Engine for Vim

val.markovic.io

41–50 of 119 posts

Re: YouCompleteMe, a Fast, As-You-Type, Fuzzy-Search Code Completion Engine for Vim

#41
post #2

Brilliant. My only concern is that the completion suggestions could cover text on other lines that I might be looking at, but I suppose this will serve to encourage me to stay out of insert mode unless necessary. Edit: Compared to other Vim plugins the installation is a pain in the ass, but it really is as quick as it claims, even on my whoa-fully underpowered eeepc. One suggestion: when I use SuperTab the name of th…

[deleted]

Re: YouCompleteMe, a Fast, As-You-Type, Fuzzy-Search Code Completion Engine for Vim

#42
post #37

How does this compare to Jedi Vim ( https://github.com/davidhalter/jedi-vim ) for Python completion? This obviously looks better from a cross language point of view, but I wonder also how well the indexing works?

Jedi-vim is not good enough because it's slow.

Re: YouCompleteMe, a Fast, As-You-Type, Fuzzy-Search Code Completion Engine for Vim

#45

This was state of the art emacs in 1997 when I was working on WebLogic. Though at the time it was called hippie-expand mode and it was in emacs. http://emacswiki.org/emacs/HippieExpand Yeah, I went there.

That emacs vs vim debate, here goes...

Re: YouCompleteMe, a Fast, As-You-Type, Fuzzy-Search Code Completion Engine for Vim

#46
post #25
post #22

How to install (at least on Linux): 1. Install the Vundle plugin manager for Vim. 2. Add the line "Bundle 'Valloric/YouCompleteMe'" (without the double quotes) to your ~/.vimrc file. 3. Open Vim and run ":BundleInstall" without the quotes. 4. Install cmake if it's not already installed. In a temporary directory, run "cmake -G 'Unix Makefiles' . ~/.vim/bundle/YouCompleteMe/cpp" (without the quotes) to generate a Makef…

It depends on MacVim on OS X. So for terminal Vim'ers: 1. copy the mvim script from MacVim to /usr/local/bin (or wherever) 2. ln -s /usr/local/bin/mvim vim (assuming you've ditched your old vim symlink) Linking directly to the MacVim binary causes these sorts of issues[0]. [0] https://github.com/altercation/solarized/issues/60

No, don't make a symlink. A simple alias is less obstrusive:

    alias vim='/path/to/mvim -v'

Re: YouCompleteMe, a Fast, As-You-Type, Fuzzy-Search Code Completion Engine for Vim

#47
post #37

How does this compare to Jedi Vim ( https://github.com/davidhalter/jedi-vim ) for Python completion? This obviously looks better from a cross language point of view, but I wonder also how well the indexing works?

YCM doesn't work for anything other than C,C++,Obj-C. Well, it does keyword completion (``/``) but that's not very useful.

Re: YouCompleteMe, a Fast, As-You-Type, Fuzzy-Search Code Completion Engine for Vim

#48
post #20

That looks really great! Does it work with PHP? That's my tool as of now, soI would really appreciatedif it could provide suggestions for it.

No. It only uses keyword completion (``/``) for anything that is not C, C++, Obj-C.

Re: YouCompleteMe, a Fast, As-You-Type, Fuzzy-Search Code Completion Engine for Vim

#49
post #7

Earlier quoted context omitted.

autocomplop[1] is easier to install, but not as sophisticated. I just installed it to see if I like the idea of having completions pop up automatically. [1] https://bitbucket.org/ns9tks/vim-autocomplpop/

ACP would be great if it weren't slow and dev-dead. Also doesn't fuzzy-match.

It isn't slow, here. YMMV.

Re: YouCompleteMe, a Fast, As-You-Type, Fuzzy-Search Code Completion Engine for Vim

#50

Earlier quoted context omitted.

ACP would be great if it weren't slow and dev-dead. Also doesn't fuzzy-match.

I forked autocomplpop a while back to fix a couple issues and make it easier to add new language support. Never noticed a speed issue. I always preferred acp vs the others due to its simplicity. https://github.com/eikenberry/acp

Oooh, nice to hear. I've done a bunch of mods to make ACP work with JS a while ago (https://github.com/romainl/dotvim/blob/master/bundle/autocom...) but I'll check your version.
Post reply on HN