X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/dc759ab32b05afeba5c103e2756ec4a2509fdaf6..3e3c8f18c7e13b80a0657d48c3c4fa8f55d9eb68:/ftdetect/pass.vim diff --git a/ftdetect/pass.vim b/ftdetect/pass.vim index 0ce0f48a..408c174e 100644 --- a/ftdetect/pass.vim +++ b/ftdetect/pass.vim @@ -1,13 +1,5 @@ -" detect password-store files -if exists('did_pass') || &compatible || version < 700 - finish -endif -let g:did_pass = 'did_pass' -let s:save_cpo = &cpoptions -set compatible&vim - -" this is straight from Tom Ryders plugin - +" this is mostly from Tom Ryders plugin +" with deleyed obfuscation syntax autocmd VimEnter \ /dev/shm/pass.?*/?*.txt \,/dev/shm/gopass-edit*/secret @@ -15,6 +7,3 @@ autocmd VimEnter \,/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