]> git.phdru.name Git - dotfiles.git/commitdiff
.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 90f3ca5ca78896ecf4bd49d80df385ae4dd5f11b..2437adab5406f1352c1d2c693cff736c29d43c23 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