.vim/filetype.vim: For `stackoverflow` exec `Code`
authorOleg Broytman <phd@phdru.name>
Thu, 16 May 2019 18:06:51 +0000 (21:06 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 16 May 2019 18:06:51 +0000 (21:06 +0300)
For texts opened by `textern` for `stackoverflow.com`
execute command `Code`.

.vim/filetype.vim

index 90f3ca5..2437ada 100644 (file)
@@ -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