X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/d6ba19d53c8eca15047cfc06d54a000f6fc8cb28..329e21ac77e347520634119b979cf02f26988491:/ftdetect/pass.vim?ds=inline diff --git a/ftdetect/pass.vim b/ftdetect/pass.vim index 6ce25b9..0ce0f48 100644 --- a/ftdetect/pass.vim +++ b/ftdetect/pass.vim @@ -7,14 +7,14 @@ let s:save_cpo = &cpoptions set compatible&vim " this is straight from Tom Ryders plugin -augroup password-store - autocmd! - autocmd VimEnter - \ /dev/shm/pass.?*/?*.txt - \,$TMPDIR/pass.?*/?*.txt - \,/tmp/pass.?*/?*.txt - \ setlocal filetype=pass -augroup END + +autocmd VimEnter + \ /dev/shm/pass.?*/?*.txt + \,/dev/shm/gopass-edit*/secret + \,$TMPDIR/pass.?*/?*.txt + \,/tmp/pass.?*/?*.txt + \ setlocal filetype=pass | + \ if password_store#setting('enable_syntax') ==# 'true' | setlocal syntax=pass.obfuscated | endif " Cleanup at end let &cpoptions = s:save_cpo