aboutsummaryrefslogtreecommitdiff
path: root/vim/filetype.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-23 17:33:38 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-23 17:33:38 +1200
commit411034679b7129ee74b225191f5d17e6c29d328f (patch)
tree611826877b8dfcdfc2c564b72e6653d724dd369b /vim/filetype.vim
parentf2e0766d4f5d02a39ee63b9cf5b1500f95399b33 (diff)
downloaddotfiles-411034679b7129ee74b225191f5d17e6c29d328f.tar.gz
dotfiles-411034679b7129ee74b225191f5d17e6c29d328f.zip
Add password filetype
Diffstat (limited to 'vim/filetype.vim')
-rw-r--r--vim/filetype.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/vim/filetype.vim b/vim/filetype.vim
index a4572738..d5c9bdb8 100644
--- a/vim/filetype.vim
+++ b/vim/filetype.vim
@@ -250,6 +250,12 @@ augroup filetypedetect
\,?*.[1-9]
\,*/man[1-9]*/?*.[1-9]*
\ setfiletype nroff
+ " pass(1) password files
+ autocmd BufNewFile,BufRead
+ \ /dev/shm/pass.?*/?*.txt
+ \,$TMPDIR/pass.?*/?*.txt
+ \,/tmp/pass.?*/?*.txt
+ \ setfiletype password
" UNIX password and shadow files
autocmd BufNewFile,BufRead
\ /etc/passwd