summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2018-05-18 16:22:10 +0200
committerAhmed Abdelhalim <[email protected]>2018-05-18 16:22:10 +0200
commit8d33a48dde0383ab75ab9d950b03264c4c592ef4 (patch)
tree67ae2f70890eadc510776b1bce408f4c739400d6
parent0a8ef38561df6065ceaa81358bd3a37cc1fc6aff (diff)
Allow spell checking/autocomplete in ruby
-rw-r--r--.vimrc2
1 files changed, 2 insertions, 0 deletions
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