Live data from Hacker News

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

val.markovic.io

1–10 of 119 posts

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

#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 the file that the suggestion is coming from appears to the right of the suggestion. That would be rather nice to have in this as well, if possible. Otherwise this is perfect, I think I'm finally done with SuperTab.

Edit 2 (sorry): This seems to be ignoring words that are in comments, and not completing anything when editing a comment. Is this toggle-able behavior?

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

#4
post #3

hmm... so tab cycles only one way, or is there a shift tab to move the other way in selections?

Shift-tab cycles the other way. Both the tab and the shift-tab mappings are configurable.

Note that shift-tab won't work in the console because the console won't pass that key combo to vim. Again, this can be remapped.

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

#5
Very cool, for me the simple fact that this is searching for a subsequence rather than a prefix makes this awesome.

I am too used to IDEs only using prefix, which is often useless to me (I remember the 2nd word but that is it, time to google).

EDIT: I find the idea of a helper window really neat (display documentation, argument names and types, etc.), too bad the vim API isn't there yet.

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

#7
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…

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/

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

#8
post #6

"I can’t show a box with help text related to the function right next to the completion menu in Vim" Couldn't you just populate quickfix instead?

That's still a window that's not right next to the completion menu. If I wanted to use a separate window far away from the menu, I'd use the 'preview' window that was designed for this (and YCM does use it, because there's nothing else on the table).

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

#9
post #7
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…

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.

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

#10
post #7
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…

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/

Aye. I remember having problems with autocomplop though when I had a rather large amounts of text open at once; YouCompleteMe seems like an improvement in that regard though. Handled

  `vim src/**/*.go`
quite nicely.
Post reply on HN