From 8d33a48dde0383ab75ab9d950b03264c4c592ef4 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Fri, 18 May 2018 16:22:10 +0200 Subject: Allow spell checking/autocomplete in ruby --- .vimrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.vimrc b/.vimrc index b20ff39..5adf4ab 100644 --- a/.vimrc +++ b/.vimrc @@ -151,6 +151,8 @@ autocmd FileType ruby,eruby let g:rubycomplete_rails = 1 autocmd FileType ruby,eruby let g:rubycomplete_classes_in_global = 1 autocmd FileType ruby,eruby let g:rubycomplete_include_object = 1 autocmd FileType ruby,eruby let g:rubycomplete_include_objectspace = 1 +autocmd FileType ruby,eruby setlocal spell " allow spell checking for ruby documentation +autocmd FileType ruby,eruby set complete+=k " allow spell autocompletion using CTRL-N autocmd BufNewFile,BufRead *.html.erb set filetype=html " for ruby erb template files autocmd BufNewFile,BufRead *.json.jbuilder set filetype=ruby " for ruby json template files autocmd BufRead,BufNewFile *.md setlocal spell " spell check md files -- cgit v1.2.3