>
> On Thu, Aug 27, 2009 at 03:27:10PM -0600, Kenneth Burgener wrote:
>
> So, even simpler and more secure is a snippet like this in your .vimrc:
>
> if has("autocmd")
>    " gpg encrypted files
>    if exists("$KEY")
>        autocmd BufNewFile,BufReadPre *.gpg :set secure viminfo= noswapfile
> nobackup nowritebackup       \history=0 binary
>        autocmd BufReadPost *.gpg :%!gpg -d 2>/dev/null
>        autocmd BufWritePre *.gpg :%!gpg -e -r $KEY 2>/dev/null
>        autocmd BufWritePost *.gpg u
>    endif
> endif
>

I use vim as well to store this kind of information. I have gotten to really
like the open ssl plugin
http://www.vim.org/scripts/script.php?script_id=2012. It makes sure that
your info isn't stored in a swap file etc and the automatically encrypts and
decrypts for you when you open the file. It also automatically creates folds
to help organize your passwords into sections.

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to