A simpler version:

---
 contrib/vim/redact_pass.vim | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/contrib/vim/redact_pass.vim b/contrib/vim/redact_pass.vim
index 008c8c1..82a1392 100644
--- a/contrib/vim/redact_pass.vim
+++ b/contrib/vim/redact_pass.vim
@@ -41,6 +41,10 @@ function! s:CheckArgsRedact()
 
 endfunction
 
+" $TMPDIR points to a symlink on macOS, which can cause the autocmd pattern to
+" not match because vim seems to be resolving paths before matching patterns
+let $TMPDIR = resolve($TMPDIR)
+
 " Auto function loads only when Vim starts up
 augroup redact_pass
   autocmd!
-- 
2.29.2

Reply via email to