From: Oleg Broytman Date: Thu, 16 May 2019 18:06:51 +0000 (+0300) Subject: .vim/filetype.vim: For `stackoverflow` exec `Code` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=7ecf6c180cbb38c4d04dc5419988db48fc47a29b;p=dotfiles.git .vim/filetype.vim: For `stackoverflow` exec `Code` For texts opened by `textern` for `stackoverflow.com` execute command `Code`. --- diff --git a/.vim/filetype.vim b/.vim/filetype.vim index 90f3ca5..2437ada 100644 --- a/.vim/filetype.vim +++ b/.vim/filetype.vim @@ -5,7 +5,10 @@ endif augroup filetypedetect " Text files autocmd BufNewFile,BufReadPost *.txt,*README* setlocal filetype=text - autocmd BufReadPost /tmp/textern*/*.txt setlocal textwidth=0 " Files from textern + + " Files from textern + autocmd BufReadPost /tmp/textern*/*.txt setlocal textwidth=0 + autocmd BufReadPost /tmp/textern*/stackoverflow.com*.txt Code " Cheetah templates autocmd BufNewFile,BufReadPost *.tmpl setlocal filetype=htmlcheetah