summaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2020-05-28 16:07:56 +0200
committerAhmed Abdelhalim <[email protected]>2020-05-28 16:08:28 +0200
commit2ffe970d978f3a36855e58e445ef41619a0e2470 (patch)
treee4c503b25f9302cb2da3d48e01008ef2f8fbe770 /.vimrc
parent70fc369f8f62a299723f1050300f7866bc2db1c4 (diff)
parent921285a75a718da5f6f14ca2d1b116b874de17cb (diff)
Merge branch 'master' of github.com:a14m/dotvim
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/.vimrc b/.vimrc
index bb595d2..8710050 100644
--- a/.vimrc
+++ b/.vimrc
@@ -151,8 +151,7 @@ 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 ruby setlocal nospell " disable spell checking for ruby documentation
autocmd FileType javascript noremap <buffer> <c-f> :call JsBeautify()<cr>
@@ -161,6 +160,7 @@ autocmd FileType html noremap <buffer> <c-f> :call HtmlBeautify()<cr>
autocmd FileType css noremap <buffer> <c-f> :call CSSBeautify()<cr>
autocmd FileType scss noremap <buffer> <c-f> :call CSSBeautify()<cr>
autocmd FileType typescript nmap <buffer> <Leader>t : <C-u>echo tsuquyomi#hint()<CR>
+autocmd FileType typescript setlocal completeopt+=menu,preview
autocmd CompleteDone * pclose " auto-close preview after completion
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""