Live data from Hacker News

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

val.markovic.io

51–60 of 119 posts

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

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

Have you checked the "balloon help" functionality? This was intended for use with mouse and windows for things like tooltips, but I think it may be general enough to expand for use you're looking for. My memory isn't so great but I fooled around with it a couple years ago; if you haven't checked it out you may want to. See ':h balloon'

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

#52
A question for syncontrol if you are not tired answering comments yet :)

YCM does not seem to integrate with snippets like NeoComplCache does, right? Do you plan to do that in the future? Are there reasons to switch from NeoComplCache if you don't program in languages for which a semantic engine is available?

Thank you for building this, awesome work!

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

#53
post #15

aside: What about context sensitive/markov completion, backed by say github/google code? And if the prediction was certain enough, offer multi-line completions. This would be helpful in languages/situations that need boilerplate for common tasks, that you'd usually google-paste. Or maybe howdoi -based completion http://news.ycombinator.com/item?id=5027021

One can also take types into account for completion. There is a Scala Eclipse IDE plugin that does it: http://lara.epfl.ch/w/insynth (it's a research project).

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

#54
post #36

...not to annoy anyone or start a fwar, but: Does anyone know how to get similar level completion in Sublime Text?

This is ready more or less built in to sublime 3. I saw the video on this and thought "oh neat, I've been doing that for a few days now in sublime text 3"

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

#55
post #15

aside: What about context sensitive/markov completion, backed by say github/google code? And if the prediction was certain enough, offer multi-line completions. This would be helpful in languages/situations that need boilerplate for common tasks, that you'd usually google-paste. Or maybe howdoi -based completion http://news.ycombinator.com/item?id=5027021

One of the projects I dream about doing is to use github/google/... code as a corpus to feed into a deep neural network, which could then perhaps do what you are talking about. However, more work needs to be done on how to represent the code and train the models.

There has been lots of work on intelligent code completion in the SE community. It doesn't seem to be very effective yet, however.

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

#56

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.

Thanks, I was wondering what where the plugins for emacs for autocomplete. How does HippieExpand compare to autocomplete.el? I'll try to test HippieExpand today!

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

#57
post #25

Earlier quoted context omitted.

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'

An alias will only work with things that are using your shell with your configuration sourced. Things that merely use your PATH won't pick that up.

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

#58
Haven't had a chance to try this yet, but I can definitely say that this was a serious sore spot for vim. AutoComplPop is great (and is what I use), but it lacks Fuzzy Search which is very important to me. I tried installing NeoComplCache, but even after spending a lot of time on it, couldn't get it working properly - plus, it slowed down vim, by a LOT. I'm talking, opening a buffer took a visible amount of time.

If this plugin works as well as advertised, I'll be extremely happy.

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

#59
post #56

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.

Thanks, I was wondering what where the plugins for emacs for autocomplete. How does HippieExpand compare to autocomplete.el? I'll try to test HippieExpand today!

There's a lot of overlap between the two. I'd consider auto-complete.el as a more modern hippie-expand which also includes a nice GUI.

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

#60
post #57

Earlier quoted context omitted.

No, don't make a symlink. A simple alias is less obstrusive: alias vim='/path/to/mvim -v'

An alias will only work with things that are using your shell with your configuration sourced. Things that merely use your PATH won't pick that up.

For the typical use of Vim, it's perfect:

    $ vim filename
Post reply on HN