Live data from Hacker News

YouCompleteMe - A code-completion engine for Vim

valloric.github.io

41–50 of 78 posts

Re: YouCompleteMe - A code-completion engine for Vim

#41
Could not get it to install on Debian. Depends on newer libs than found on conservative Wheezy. Mac was easier but still somewhat arduous. It's necessary complex to install because he's using C++ to get the speed boost. VimScript was too slow.

Once you get it working. It's amazing with Go :)

Re: YouCompleteMe - A code-completion engine for Vim

#42

If you are a ruby or javascript developer, just use Supertab, because you will waste more time installing it than getting any substantial benefits over default vim completion.

How do you achieve completion in Ruby with vim? I'd be interested cause the only things doing completion I've seen for vim so far are always extremely limited (completion on stuff you have in your buffer).

Re: YouCompleteMe - A code-completion engine for Vim

#43
post #37

This takes "super-quick installation" to a new level... * compile Vim from source * install and understand Vundle * depending on some library issues maybe recompile ycm * Install development tools and CMake * Make sure you have Python headers installed How is the usual "unzip it to ~/.vim" installation called these days?

YouCompleteMe has an unusually complex installation. These days most vim plugins allow you to simply: cd ~/.vim/bundle git clone .... and you are good to go. YouCompleteMe isn't this nice, and suffers for it I think. The "unzip it to ~/.vim" is usually called "a real pain in the ass to keep up to date and disabled or uninstall."

what!! no dude

Re: YouCompleteMe - A code-completion engine for Vim

#44

I'm the main YCM developer. Most complaints here are about the installation procedure. I tried to make it as easy as possible, but the root of the problem is that you _have to_ compile the ycm_core module so that completion is fast. There's no going around it. The compiled module is the main reason why YCM is so fast when you get it configured. Other than complicated/rare configurations, installing YCM is IMO not tha…

Just don't advertise it as "super-quick installation", that's quite simply taking the piss.

Re: YouCompleteMe - A code-completion engine for Vim

#45
post #44

I'm the main YCM developer. Most complaints here are about the installation procedure. I tried to make it as easy as possible, but the root of the problem is that you _have to_ compile the ycm_core module so that completion is fast. There's no going around it. The compiled module is the main reason why YCM is so fast when you get it configured. Other than complicated/rare configurations, installing YCM is IMO not tha…

Just don't advertise it as "super-quick installation", that's quite simply taking the piss.

"Super-quick" was intended to be a bit tongue-in-cheek, although compared to the Full Installation Guide (it's in the docs), trust me, the "super-quick" installation really is super-quick.

Re: YouCompleteMe - A code-completion engine for Vim

#47

I'm the main YCM developer. Most complaints here are about the installation procedure. I tried to make it as easy as possible, but the root of the problem is that you _have to_ compile the ycm_core module so that completion is fast. There's no going around it. The compiled module is the main reason why YCM is so fast when you get it configured. Other than complicated/rare configurations, installing YCM is IMO not tha…

Are you familiar with NeoBundle? It's mostly a drop-in replacement for Vundle, but it has support for post-installation hooks. This could potentially make it a one-step install (assuming NeoBundle was already installed).

For example, here is the install snippet from vimproc, which also requires compiling: https://gist.github.com/lynndylanhurley/5951180.

https://github.com/Shougo/neobundle.vim

Re: YouCompleteMe - A code-completion engine for Vim

#49

If you are a ruby or javascript developer, just use Supertab, because you will waste more time installing it than getting any substantial benefits over default vim completion.

How do you achieve completion in Ruby with vim? I'd be interested cause the only things doing completion I've seen for vim so far are always extremely limited (completion on stuff you have in your buffer).

  autocmd FileType ruby,eruby set omnifunc=rubycomplete#Complete
  autocmd FileType ruby,eruby let g:rubycomplete_buffer_loading = 1
  autocmd FileType ruby,eruby let g:rubycomplete_rails = 1
  autocmd FileType ruby,eruby let g:rubycomplete_classes_in_global = 1
and for Supertab

  let g:SuperTabDefaultCompletionType = ""
or

  autocmd FileType ruby let g:SuperTabDefaultCompletionType = "context"
That way you will get omni completion with supertab.

I compiled this from http://www.cuberick.com/2008/10/ruby-autocomplete-in-vim.htm... and some SO answers.

Re: YouCompleteMe - A code-completion engine for Vim

#50
So I cloned the repo, ran install.sh and got prompted to run the git submodule checkout for jedi the first time I opened a python file.

Seems like a pretty excellent installation process (on linux anyway) despite the "hackers" complaining in other comment threads.

But the important part is that I'm really impressed by the completion ability, I've only played with it a bit but I'm leaving the rest of my plugins for that turned off and staying with ycm for now. Excellent plugin, thank you!

Post reply on HN