set omnifunc=rubycomplete#Complete let g:rubycomplete_buffer_loading = 1 let g:rubycomplete_rails = 1 let g:rubycomplete_classes_in_global = 1 let g:rubycomplete_include_object = 1 let g:rubycomplete_include_objectspace = 1 setlocal spell " allow spell checking for ruby documentation set complete+=k " allow spell autocompletion using CTRL-N