jaroslavj·13 anni fa·discuss 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 = "<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.htm... and some SO answers.
jaroslavj·13 anni fa·discussIf 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.
and for Supertab
or
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.