diff options
| -rw-r--r-- | .vimrc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""" |
