X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.vim%2Ffiletype.vim;h=e39f2d540b83f7690296d3acd2c21b6616bcd2ce;hb=04bbc0256453a304c73e24035fefb995c158953a;hp=0c8e624c9db28911280eaa2528f6c7c62572ac55;hpb=21c29714d2177a9f5995acfa8ecadfcf4255815d;p=dotfiles.git diff --git a/.vim/filetype.vim b/.vim/filetype.vim index 0c8e624..e39f2d5 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/*.txt setlocal textwidth=0 " Files from ViewSourceWith + + " 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 @@ -21,7 +24,7 @@ augroup filetypedetect " Python Templates (Quixote) are Python files autocmd BufNewFile,BufReadPost *.ptl setlocal filetype=python " Python Embedded are mason-like python templates - autocmd BufNewFile,BufReadPost *.pyem setlocal filetype=python filetype=mason + autocmd BufNewFile,BufReadPost *.pyem setlocal filetype=python.mason.html " ssh files autocmd BufReadPost known_hosts setlocal filetype=ssh