From 411034679b7129ee74b225191f5d17e6c29d328f Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 23 Jun 2018 17:33:38 +1200 Subject: Add password filetype --- vim/filetype.vim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'vim/filetype.vim') 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 -- cgit v1.2.3