Once you get it working. It's amazing with Go :)
YouCompleteMe - A code-completion engine for Vim
41–50 of 78 posts
Re: YouCompleteMe - A code-completion engine for Vim
#42If 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.
Re: YouCompleteMe - A code-completion engine for Vim
#43This 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."
Re: YouCompleteMe - A code-completion engine for Vim
#44I'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…
Re: YouCompleteMe - A code-completion engine for Vim
#45I'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
#46Re: YouCompleteMe - A code-completion engine for Vim
#47I'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…
For example, here is the install snippet from vimproc, which also requires compiling: https://gist.github.com/lynndylanhurley/5951180.
Re: YouCompleteMe - A code-completion engine for Vim
#48Re: YouCompleteMe - A code-completion engine for Vim
#49If 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
#50Seems 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!