diff options
| author | Ahmed Abdelhalim <[email protected]> | 2020-03-23 00:18:41 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2020-03-23 00:21:32 +0100 |
| commit | 91a64bc4009318ef559c9b70c2c4edd904d59757 (patch) | |
| tree | 82e1392b82005cf59fe4aabfdc0ae05283d30504 /.vimrc | |
| parent | 3abfb82194feed395e03294e1b4e07ba12f5a85d (diff) | |
Fix auto-spell and auto-correct vim
Diffstat (limited to '.vimrc')
| -rw-r--r-- | .vimrc | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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> |
