Commit Graph

20 Commits

Author SHA1 Message Date
James Vega
21eed8f06b Initialize b:GPGRecipients with g:GPGDefaultRecipients
Signed-off-by: James Vega <vega.james@gmail.com>
2011-10-13 17:22:09 -04:00
James Vega
df5f4d51bf Correctly handle the different keyid-format options
Signed-off-by: James Vega <vega.james@gmail.com>
2011-08-13 18:00:27 -04:00
James Vega
d19a59165d Add g:GPGUsePipes variable to avoid saving unencrypted data to tempfiles
Signed-off-by: James Vega <vega.james@gmail.com>
2011-08-09 21:24:44 -04:00
James Vega
ea09d9fd0e Disable 'undofile' for the buffer, if the option exists
Signed-off-by: James Vega <vega.james@gmail.com>
2011-06-26 15:40:34 -04:00
James Vega
589b6d1851 Update docs to show my takeover of gnupg.vim
Signed-off-by: James Vega <vega.james@gmail.com>
2011-05-24 07:28:02 -04:00
James Vega
5739223478 Set 'noshelltemp' when executing gnupg
This is another step to prevent writing out sensitive information to disk.
Typically, when running an external command, Vim writes the command input (the
buffer in this case) to a file in a private temp directory.  When
'noshelltemp' is set and the system supports it, Vim uses pipes to the child
process to handle this instead.

Signed-off-by: James Vega <vega.james@gmail.com>
2011-05-24 01:21:19 -04:00
James Vega
11760e451a Bump minimum Vim version to 7.2
The two argument form of shellescape() is now being used, and that was
introduced in the pre-releases of 7.2.

Signed-off-by: James Vega <vega.james@gmail.com>
2011-05-24 01:16:05 -04:00
James Vega
7ec46a5c12 Check for our BufReadCmd to see if the plugin has been loaded.
Signed-off-by: James Vega <vega.james@gmail.com>
2011-05-24 01:14:45 -04:00
James Vega
987c1c1c08 Refactor to use *WriteCmd/*ReadCmd autocommands.
With this change, we're able to properly handle errors from shell commands.
This means no more overwriting the original file when an incorrect password is
entered or some other similar scenario.

Also, move the handling of entering recipients to gpg itself instead of
mimicking that in Vim itself.

Signed-off-by: James Vega <vega.james@gmail.com>
2011-05-24 01:14:39 -04:00
Markus Braun
724e194cfb release candidate for gnupg.vim
- better '*.asc' handling
- better filename escaping
- better handling of multiple keyrings
2011-05-24 00:53:44 -04:00
Markus Braun
5ae32bcde1 releasing gnupg.vim 3026
- fix a bug by using a sh compatible setting for 'shellredir' on unix systems. when 'shell' was set to csh or tcsh by the user and the system has /bin/sh linked to dash the plugin didn't work.
2011-05-23 23:18:33 -04:00
Markus Braun
a878b06964 releasing gnupg.vim 2782
- show more information (key id and creation time) of keys in GPGEditRecipients, GPGViewRecipients and during selecting in case of a ambiguous key.
2011-05-23 23:17:37 -04:00
Markus Braun
e488aea931 releasing gnupg.vim 2773
- fix a bug in detecting windows platforms
- added g:GPGPreferSign to sign encrypted files by default (thanks to Tim Swast).
2011-05-23 23:16:42 -04:00
Markus Braun
7fd5c92bce releasing gnupg.vim 2276
- added support for default recipients via the variable g:GPGDefaultRecipients.
- fixed an wrong error message with symmetric encryption and set recipients (thanks to Sebastian Luettich).
- create a empty new buffer on leaving vim to wipe out sensitive data on console.
- make sure senisitive data is never written unencrypted to disk.
2011-05-23 23:15:53 -04:00
Markus Braun
4b5db78267 releasing gnupg.vim 2249
- rewritten lots of code to use lists feature of vim 7 instead of my own implementation
- added a n option to change the name and location of GPG executable
- try to get GPG_TTY dynamically.
2011-05-23 23:14:29 -04:00
Markus Braun
77df8bb864 releasing gnupg.vim 1933
- changed parsin to work with gpg2 correctly
- save/restore view of saved window
- fix a bug when encoding and fileencoding is different
- restructured autocommand triggers
- added a debug command and debug messages
2011-05-23 23:13:29 -04:00
Markus Braun
66fdaa0558 releasing gnupg.vim 1605
- new plugin options to set preferences for symmetric/asymmetric and armor/binary files
- fix for use with gvim. !! plugin works only in gvim if gpg-agent is available !!
2011-05-23 23:12:30 -04:00
Markus Braun
31d69b326a releasing gnupg.vim 1472
- support for symmetric encrypted files.
- detection of various encryption options.
- possibility to change gpg options using new commands GPGEditOptions and GPGViewOptions commands.
- support editing files with '.gpg', '.pgp' and '.asc' suffixes (tanks to Richard Bronosky).
- detection of unencrypted files.
- support for windows systems (thanks to Erik Remmelzwaal).
2011-05-23 23:11:08 -04:00
Markus Braun
14dab8f3d6 releasing gnupg.vim 1.27 2011-05-23 23:06:25 -04:00
Markus Braun
ac20966446 releasing gnupg.vim 1.26 2011-05-23 23:04:55 -04:00