summaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc5
1 files changed, 2 insertions, 3 deletions
diff --git a/.vimrc b/.vimrc
index 1908621..88b0753 100644
--- a/.vimrc
+++ b/.vimrc
@@ -65,6 +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 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)
@@ -150,10 +151,8 @@ set omnifunc=pythoncomplete#Complete
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
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
-autocmd BufRead,BufNewFile *.markdown setlocal spell " spell check md files
+autocmd FileType markdown setlocal spell " spell check markdown files
autocmd FileType gitcommit setlocal spell " spell check commits
-autocmd FileType gitcommit set complete+=k " allow spell autocompletion using CTRL-N
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>