X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/be23735428b792314c72634c32bf3ad791fb7678..c3b0f3ce059a88721cdc94ea2a4445d2da9f276d:/ftplugin/pass.vim 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