Markus Braun
9f4f083367
Little reindenting.
2011-07-06 08:05:36 +02:00
Markus Braun
febf2d4685
Changed recipient and option buffer handling
...
This allows ':w' to close (besides ':q' and ':x')
2011-07-06 08:05:36 +02:00
Markus Braun
6a32435246
Revert last commit.
2011-07-06 08:05:36 +02:00
Markus Braun
de5ea9f6bd
New commands ":GPGRecipients" and ":GPGOptions"
...
Aliases for ":GPGEditRecipients" and ":GPGEditOptions" for better tab completion.
2011-07-06 08:05:36 +02:00
Markus Braun
b98c3fbd4a
Convert the output of gpg to the correct encoding.
2011-07-06 08:05:36 +02:00
Markus Braun
ac6ec713e6
Added an option to set the gpg executable.
2011-07-06 08:05:35 +02:00
Markus Braun
fceb8855f9
Save/restore view of saved window instead of cursor position.
2011-07-06 08:05:35 +02:00
Markus Braun
bfdc09a732
Print debug message only after debug level had been defined.
2011-07-06 08:05:35 +02:00
Markus Braun
874bd187f2
Made gnupg.vim hopefully encoding safe, needs testing.
2011-07-06 08:05:35 +02:00
Markus Braun
479e79d3be
Print plugin version in verbose mode
2011-07-06 08:05:35 +02:00
Markus Braun
acdf9e096d
Restructured autocommand triggers, merged in functions.
2011-07-06 08:05:35 +02:00
Markus Braun
5aabc38ec2
Restore cursor position after write.
2011-07-06 08:05:35 +02:00
Markus Braun
780d1ed91e
Make use of "--list-only" option.
2011-07-06 08:05:35 +02:00
Markus Braun
f5e107f596
Added a debug command and some debug messages
2011-07-06 08:05:35 +02:00
Markus Braun
c069e0f21d
Modified to work with gpg2 correctly.
2011-07-06 08:05:34 +02:00
Markus Braun
bf868fb9a1
Use revision number for multiple load guard.
2011-07-06 08:05:34 +02:00
Markus Braun
f786031299
Ignore tty for gvim
2011-07-06 08:05:34 +02:00
Markus Braun
63dff1cd4b
shellredir wasn't restored.
...
Instead of restore it was set again to s:shellredir
2011-07-06 08:05:34 +02:00
Markus Braun
f9a81fc1bd
Set LC_ALL also, to ensure english messages of gpg.
2011-07-06 08:05:34 +02:00
Markus Braun
eb2fb27748
Added variables g:GPGPreferSymmetric and g:GPGPreferArmor.
2011-07-06 08:05:34 +02:00
Markus Braun
fc79049481
Bind highlight to standard highlighting.
2011-07-06 08:05:34 +02:00
Markus Braun
ae76dffaed
Correction in documentation
2011-07-06 08:05:34 +02:00
Markus Braun
60b7fb1ede
Aotocommand rework
...
Make GPGFinish*() more robust, change to window if closed from another.
Also install autocmd in GPGEdit*() if we split an existing buffer.
2011-07-06 08:05:33 +02:00
Markus Braun
621813ef6e
Make GPGEdit* commands more robust.
2011-07-06 08:05:33 +02:00
Markus Braun
ac21a24b3d
Better escaping file names with spaces
2011-07-06 08:05:33 +02:00
Markus Braun
9a15ce7ef1
Only undo encryption of buffer content for encrypted files.
2011-07-06 08:05:33 +02:00
Markus Braun
4771cc9025
Edit unencrypted files with "encryption" suffix as normal files.
2011-07-06 08:05:33 +02:00
Markus Braun
9a272dbf45
Some fixes for windows.
2011-07-06 08:05:33 +02:00
Markus Braun
ca35a3b51d
Documentation and credits update.
2011-07-06 08:05:33 +02:00
Markus Braun
9f3b48757c
Added '.asc' suffix.
2011-07-06 08:05:33 +02:00
Markus Braun
0e6b891b8e
Make symmetric encryption working again.
2011-07-06 08:05:33 +02:00
Markus Braun
bc2f74b4f2
Check for cmd.com and command.com to check for windows system.
2011-07-06 08:05:32 +02:00
Markus Braun
768dda0d94
Forgot one place while adding '.pgp' suffix.
2011-07-06 08:05:32 +02:00
Markus Braun
bb849bd53e
Make gnupg.vim working with cmd under windows.
2011-07-06 08:05:32 +02:00
Markus Braun
d29ae7efa3
Recognize '.pgp' suffix
2011-07-06 08:05:32 +02:00
Markus Braun
8c2d996b57
Default of variable GPGUseAgent to 1
...
This way so the default behaviour is not changed compared to previous versions.
2011-07-06 08:05:32 +02:00
Markus Braun
d0540c6b48
Information about missing environment GPG_TTY.
2011-07-06 08:05:32 +02:00
Markus Braun
a14b9fe592
Introduced variable GPGUseAgent
...
Selectively enable usage of gpg-agent.
2011-07-06 08:05:32 +02:00
Markus Braun
167ef9a4f3
GnuPG plugin for Vim
...
This script implements transparent editing of gpg encrypted files. The
filename must have a ".gpg" suffix. When opening such a file the content
is decrypted, when opening a new file the script will ask for the
recipients of the encrypted file. The file content will be encrypted to
all recipients before it is written. The script turns off viminfo and
swapfile to increase security.
2011-07-06 08:04:37 +02: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