FWIW, my setup includes:

export EDITOR=~/bin/custom-editor

Where ~/bin/custom-editor contains:

#!/bin/sh
if [ $# = 1 ] && [ -z "${1##*/pass.*/*.txt}" ]; then
    exec vim --cmd 'source /usr/share/doc/pass/examples/vim/redact_pass.vim' 
"$1"
fi
exec /usr/bin/editor

(Change /usr/bin/editor to your preferred editor.)

Reply via email to