On Tue, Feb 22, 2011 at 01:29:59PM -0800, AndrewDaviel wrote:
> 
> On Feb 21, 10:43 pm, James Vega <james...@jamessan.com> wrote:
> 
> > I've attached an updated version of the plugin that I sent to Markus a
> > while back which I think addresses these problems.  I've described below
> > specifically how the changes should have the desired effect. Would you
> > mind testing it?
> 
> Thanks.
> 
> On a recent build of vim 7.3, it appears to work, also on vim 7.2.
> 
> When writing out a modified encrypted file, the plaintext is still
> saved in "4" in the temporary directory, although the ciphertext is
> not saved to "2" while reading as with the original plugin.

This is related to the 'shelltemp' option.  You can, if your system
supports it, use pipes instead of temp files.  I guess the plugin could
do the check and automatically use pipes if supported.

> Our production machines are running SL 5 (~= CENTOS 5) with Vim 7.0.
> Editing an encrypted file gives (on stdout, until it's cleared):
> Error detected while processing function <SNR>7_GPGDecrypt:
> line   92:
> E118: Too many arguments for function: shellescape
> E15: Invalid expression: "r !" . s:GPGCommand . ' --quiet --decrypt
> ' . shellescape(filename, 1) . ' ' . s:stderrredirnull
> line   96:
> E492: Not an editor command: LANG=C LC_ALL=C gpg --trust-model always
> --no-use-agent --verbose --decrypt --list-only --dry-run --batch --no-
> use-agent --logger-fd 1 '/local/home/advax/CCN/trysym.asc'

Yeah, it requires functionality that was introduced after 7.0.  I'll
adjust the checks for the necessary functionality to be more thorough so
you get the error message when loading the plugin.

-- 
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <james...@debian.org>

Attachment: signature.asc
Description: Digital signature

Raspunde prin e-mail lui