X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/2f233dca7b538ab4af29f2a8a1b7b7f1803da358..20c7e83b58359cee70cad87c221f27045aca425e:/.vim/bundle/password-store/ftplugin/pass.vim diff --git a/.vim/bundle/password-store/ftplugin/pass.vim b/.vim/bundle/password-store/ftplugin/pass.vim index c6a2680a..5c8b41e3 100644 --- a/.vim/bundle/password-store/ftplugin/pass.vim +++ b/.vim/bundle/password-store/ftplugin/pass.vim @@ -3,7 +3,7 @@ if exists('did_pass_ftplugin') || &compatible || v:version < 700 endif let g:did_pass = 'did_pass_ftplugin' let s:save_cpo = &cpoptions -set compatible&vim +set cpoptions&vim nmap rotate_password :call password_store#replace() if ! hasmapto( '\rotate_password', 'n') @@ -40,19 +40,15 @@ endfunction call s:CheckArgsRedact() function! s:reveal_pass() abort - highlight! link password_store_password Comment + setlocal syntax=pass endfunction command! Reveal call reveal_pass() function! s:conceal_pass() abort - highlight! password_store_password guifg=DarkGray guibg=DarkGray ctermfg=8 ctermbg=8 + setlocal syntax=pass.obfuscated endfunction command! Conceal call conceal_pass() normal! GG -augroup password_settings_late_load - autocmd! - autocmd FileReadPost if &filetype == 'pass' | echom 'autocmd triggered' | let b:load_pass_syntax = 1 | source 'syntax/pass.vim' | endif -augroup end " Cleanup at end let &cpoptions = s:save_cpo