diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-23 17:33:38 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-23 17:33:38 +1200 |
commit | 411034679b7129ee74b225191f5d17e6c29d328f (patch) | |
tree | 611826877b8dfcdfc2c564b72e6653d724dd369b /vim/filetype.vim | |
parent | Correct an exists() call in markdown ftplugin (diff) | |
download | dotfiles-411034679b7129ee74b225191f5d17e6c29d328f.tar.gz dotfiles-411034679b7129ee74b225191f5d17e6c29d328f.zip |
Add password filetype
Diffstat (limited to 'vim/filetype.vim')
-rw-r--r-- | vim/filetype.vim | 6 |
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 |