On Thu 16 Jul 2015 at 05:08:48PM -0700, Patrick Burroughs (Celti) wrote: > On Fri, 17 Jul 2015 01:53:30 +0200 Joakim Reinert > <[email protected]> wrote: > > > au BufNewFile,BufRead /dev/shm/pass.* setlocal noswapfile nobackup > > noundofile > > Not a bad idea, but I prefer a more comprehensive option. Include > this[1] into your vimrc or otherwise load it (pathogen, etc.) to > comprehensively treat temporary files as just that: temporary. > > [1] https://gist.github.com/tejr/5890634
From https://gist.github.com/tejr/5890634: > silent! autocmd BufNewFile,BufReadPre > \ /tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*,*/shm/* > \ setlocal viminfo= 'viminfo' is a global setting, so this permanently clobbers 'viminfo' when the autocmd fires. I think Joakim Reinert's suggestion is simple and effective. Advanced vim users will know how to tweak his one-liner to taste, and novice users benefit from the ease of copying and pasting a single line. guns
signature.asc
Description: PGP signature
_______________________________________________ Password-Store mailing list [email protected] http://lists.zx2c4.com/mailman/listinfo/password-store
