summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2019-12-12 13:02:50 +0100
committerFlorian Pritz <bluewind@xinu.at>2020-01-25 16:04:17 +0100
commit01a2162dcbcc5b0b43fff6b8c41528f464cf3213 (patch)
treef6eb02b49d3656755a9ec6a3e97d1ec1f2f19086
parent60cc6449830fb22e4f4852de7326fa2a5e98842f (diff)
downloaddotfiles-01a2162dcbcc5b0b43fff6b8c41528f464cf3213.tar.gz
dotfiles-01a2162dcbcc5b0b43fff6b8c41528f464cf3213.tar.xz
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 <bluewind@xinu.at>
-rw-r--r--.vimrc2
1 files changed, 1 insertions, 1 deletions
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