X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=blobdiff_plain;f=.vim%2Ffiletype.vim;h=2437adab5406f1352c1d2c693cff736c29d43c23;hp=20911a0e6519e9e2a12ed11238455a4d3a79b20a;hb=7ecf6c180cbb38c4d04dc5419988db48fc47a29b;hpb=c25b192fd055ff0399e94c5325177ab2fa3550b6 diff --git a/.vim/filetype.vim b/.vim/filetype.vim index 20911a0..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/*.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 @@ -27,12 +30,9 @@ augroup filetypedetect autocmd BufReadPost known_hosts setlocal filetype=ssh autocmd BufReadPost authorized_keys setlocal filetype=ssh - " Set mapping for CVS/Subversion/Mercurial commit files + " Set mapping for CVS/Subversion/Mercurial/git commit files autocmd BufReadPost /tmp/cvs* setlocal filetype=cvscommit autocmd BufReadPost svn-commit.tmp*,svn-commit.*.tmp* setlocal filetype=svncommit autocmd BufReadPost /tmp/hg-editor-*.txt setlocal filetype=hgcommit autocmd BufReadPost .git/*MSG setlocal filetype=gitcommit - - " Medap-RM Method files - autocmd BufNewFile,BufReadPost *.rsc setlocal filetype=conf filetype=medaprm-method augroup END