From 22cca0c8218fa2e13891716080d56020f5ff3ef5 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Sat, 17 Sep 2016 22:39:17 -0400 Subject: [PATCH] =?UTF-8?q?Use=20=E2=80=9C:read=20++edit=20!...=E2=80=9D?= =?UTF-8?q?=20so=20file=20encoding/format=20detection=20triggers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: James McCoy --- plugin/gnupg.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin/gnupg.vim b/plugin/gnupg.vim index 07b10ea..e02c71c 100644 --- a/plugin/gnupg.vim +++ b/plugin/gnupg.vim @@ -1,5 +1,5 @@ " Name: gnupg.vim -" Last Change: 2016 Aug 25 +" Last Change: 2016 Sep 17 " Maintainer: James McCoy " Original Author: Markus Braun " Summary: Vim plugin for transparent editing of gpg encrypted files. @@ -175,7 +175,7 @@ if (exists("g:loaded_gnupg") || &cp || exists("#GnuPG")) finish endif -let g:loaded_gnupg = '2.6' +let g:loaded_gnupg = '2.6.1-dev' let s:GPGInitRun = 0 " check for correct vim version {{{2 @@ -568,7 +568,7 @@ function s:GPGDecrypt(bufread) " since even with the --quiet option passphrase typos will be reported, " we must redirect stderr (using shell temporarily) call s:GPGDebug(1, "decrypting file") - let cmd = { 'level': 1, 'ex': silent . 'r !' } + let cmd = { 'level': 1, 'ex': silent . 'read ++edit !' } let cmd.args = '--quiet --decrypt ' . s:shellescape(filename, 1) call s:GPGExecute(cmd) @@ -714,7 +714,7 @@ function s:GPGEncrypt() " encrypt the buffer let destfile = tempname() - let cmd = { 'level': 1, 'ex': "'[,']w !" } + let cmd = { 'level': 1, 'ex': "'[,']write !" } let cmd.args = '--quiet --no-encrypt-to ' . options let cmd.redirect = '>' . s:shellescape(destfile, 1) silent call s:GPGExecute(cmd)