From 7ecf6c180cbb38c4d04dc5419988db48fc47a29b Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 16 May 2019 21:06:51 +0300 Subject: [PATCH] .vim/filetype.vim: For `stackoverflow` exec `Code` For texts opened by `textern` for `stackoverflow.com` execute command `Code`. --- .vim/filetype.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.5