On Thursday, June 9, 2016 at 1:53:05 AM UTC-5, cryptoz wrote:
> 
> The script I put in _vimrc to open *.gpg,*.asc files is similar to what I
> got from http://vim.wikia.com/wiki/Encryption
> 
> I understand correctly, the steps are:
> 
> 1. set bin option before read the file.
> 2. read the file into buffer.
> 3. call gpg to decrypt the buffer. 
> 4. set nobin option.
> 

Off-topic, but it's also important to:

* turn off saving registers in the .viminfo file
* turn off the swap file
* turn off the undo file

...and maybe some other options. Otherwise you could leak unencrypted data out 
to the filesystem.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui