X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/9d788b57245fa78e7779b183f2f90fa00d5c80c1..d6ba19d53c8eca15047cfc06d54a000f6fc8cb28:/ftplugin/pass.vim?ds=inline diff --git a/ftplugin/pass.vim b/ftplugin/pass.vim index 5f26a1a..f728b00 100644 --- a/ftplugin/pass.vim +++ b/ftplugin/pass.vim @@ -35,5 +35,16 @@ endfunction call s:CheckArgsRedact() +function! s:reveal_pass() abort + highlight! link password_store_password Comment +endfunction +command! Reveal call reveal_pass() + +function! s:conceal_pass() abort + highlight! password_store_password guifg=DarkGray guibg=DarkGray ctermfg=8 ctermbg=8 +endfunction +command! Conceal call conceal_pass() +normal GG + " Cleanup at end let &cpoptions = s:save_cpo