4 ms·
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
by jaroslavj 13y ago
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.
- VeejayRampay 13y agoHow 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).
- jaroslavj 13y agoautocmd 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 = "<c-x><c-o>" 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.html http://www.cuberick.com/2008/10/ruby-autocomplete-in-vim.htm... and some SO answers.