summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.vimrc3
1 files changed, 2 insertions, 1 deletions
diff --git a/.vimrc b/.vimrc
index 3ba5916..8710050 100644
--- a/.vimrc
+++ b/.vimrc
@@ -65,7 +65,7 @@ set clipboard=unnamed " fix not copying between clipboard and vim
set backspace=indent,eol,start " fix backspace not deleteing existing text
set number " set numbers column on the left
set complete-=i " Faster vim completion
-set complete+=k " allow spell autocompletion using CTRL-N
+set complete+=k " Dictionary word completion using Ctrl+N
set nrformats-=octal " Increment numbers decimally using Ctrl+A and Ctrl+X
set autoindent " Auto indent
" set smartindent " Smart indet (causes problems having differnt files indentation)
@@ -153,6 +153,7 @@ autocmd BufNewFile,BufRead *.html.erb set filetype=html " for ruby erb tem
autocmd BufNewFile,BufRead *.json.jbuilder set filetype=ruby " for ruby json template files
autocmd FileType markdown setlocal spell " spell check markdown files
autocmd FileType gitcommit setlocal spell " spell check commits
+autocmd FileType ruby setlocal nospell " disable spell checking for ruby documentation
autocmd FileType javascript noremap <buffer> <c-f> :call JsBeautify()<cr>
autocmd FileType json noremap <buffer> <c-f> :call JsonBeautify()<cr>
autocmd FileType html noremap <buffer> <c-f> :call HtmlBeautify()<cr>