diff options
| author | Ahmed Abdelhalim <[email protected]> | 2018-05-18 16:22:10 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2018-05-18 16:22:10 +0200 |
| commit | 8d33a48dde0383ab75ab9d950b03264c4c592ef4 (patch) | |
| tree | 67ae2f70890eadc510776b1bce408f4c739400d6 /.vimrc | |
| parent | 0a8ef38561df6065ceaa81358bd3a37cc1fc6aff (diff) | |
Allow spell checking/autocomplete in ruby
Diffstat (limited to '.vimrc')
| -rw-r--r-- | .vimrc | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |
