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:
parent
4453e4d94e
commit
755113f0f3
2 changed files with 5 additions and 1 deletions
|
@ -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 {{{
|
||||||
|
|
|
@ -53,3 +53,4 @@ Fordism
|
||||||
embeddedness
|
embeddedness
|
||||||
Zapatista
|
Zapatista
|
||||||
essentialism
|
essentialism
|
||||||
|
screenshot
|
||||||
|
|
Loading…
Reference in a new issue