X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/9d788b57245fa78e7779b183f2f90fa00d5c80c1..e1feca9ca0bef360fa88219ebba9ef216b8897a0:/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