From: Josef Fortier Date: Fri, 7 Sep 2018 03:09:12 +0000 (-0500) Subject: Red highlight for shorter passwords X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/e1feca9ca0bef360fa88219ebba9ef216b8897a0?ds=inline Red highlight for shorter passwords --- diff --git a/syntax/pass.vim b/syntax/pass.vim index 8a3c12f..e8deaef 100644 --- a/syntax/pass.vim +++ b/syntax/pass.vim @@ -4,6 +4,9 @@ if exists('b:current_syntax') | finish| endif syntax match password_store_password /\%1l.*/ highlight password_store_password guifg=DarkGray guibg=DarkGray ctermfg=8 ctermbg=8 +syntax match password_store_password_short /\%1l.\{,6\}$/ +highlight password_store_password_short guifg=Red guibg=Red ctermfg=1 ctermbg=1 + " colon field value is the suggested path for additional information syntax match password_store_header '\v^[^:]+:' highlight link password_store_header PreProc