nvim: Add exclusions for pass files to nvim

Additionally to gopass editing, editing pass files should also avoid
creating external undo files, backups, and similar traceable files out
of which secrets could leak.

This prevents their creation on a wide level.
This commit is contained in:
Marty Oehme 2020-09-12 17:36:11 +02:00
parent 4453e4d94e
commit 755113f0f3
Signed by: Marty
GPG key ID: B7538B8F50A1C800
2 changed files with 5 additions and 1 deletions

View file

@ -160,7 +160,10 @@ call matchadd('ColorColumn', '\%81v', 100)
" Special setting for editing gopass files - make sure nothing leaks outside " Special setting for editing gopass files - make sure nothing leaks outside
" the directories it is supposed to " the directories it is supposed to
au BufNewFile,BufRead /dev/shm/gopass.* setlocal noswapfile nobackup noundofile au BufNewFile,BufRead /dev/shm/gopass.* setlocal noswapfile nobackup noundofile nowritebackup viminfo=
au BufNewFile,BufRead /dev/shm/pass.?*/?*.txt setlocal noswapfile nobackup noundofile nowritebackup viminfo=
au BufNewFile,BufRead $TMPDIR/pass.?*/?*.txt setlocal noswapfile nobackup noundofile nowritebackup viminfo=
au BufNewFile,BufRead /tmp/pass.?*/?*.txt setlocal noswapfile nobackup noundofile nowritebackup viminfo=
" }}} " }}}
" KEYBINDINGS {{{ " KEYBINDINGS {{{

View file

@ -53,3 +53,4 @@ Fordism
embeddedness embeddedness
Zapatista Zapatista
essentialism essentialism
screenshot