From 01a2162dcbcc5b0b43fff6b8c41528f464cf3213 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 12 Dec 2019 13:02:50 +0100 Subject: vimrc: Hide more passwords Some ruby apps use the old ":foo:" syntax in the yaml files instead of the simpler "foo:". Hide both of them. Signed-off-by: Florian Pritz --- .vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index 285f870..8185566 100644 --- a/.vimrc +++ b/.vimrc @@ -397,7 +397,7 @@ autocmd Syntax * syn match ExtraWhitespace /\s\+$\| \+\ze\t/ containedin=ALL " hide passwords autocmd BufReadCmd,FileReadCmd passwords.gpg set ft=gpgpass -autocmd Syntax yaml syn match MyPassword /\%(^\s*pass\(word\)\?:\s*\)\@<=\S\+/ conceal cchar=* +autocmd Syntax yaml syn match MyPassword /\%(^\s*:\?pass\(word\)\?:\s*\)\@<=\S\+/ conceal cchar=* autocmd Syntax gpgpass syn match GpgPassword /\%(^\)\@<=\S\+/ conceal cchar=* autocmd Syntax gpgpass syn match GpgPasswordQuoted /\%(^\)\@<=".\+"/ conceal cchar=* set conceallevel=2 concealcursor=nvc -- cgit v1.2.3-24-g4f1b