[pass] Vim security settings for documentation

guns self at sungpae.com
Tue Jul 21 02:09:41 CEST 2015

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 <mail+password-store at jreinert.com> 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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20150720/621750c2/attachment.asc>

More information about the Password-Store mailing list