James McCoy
70cfdc99bd
Use "silent doautocmd" to suppress annoying "No matching autocmds" message
...
Signed-off-by: James McCoy <vega.james@gmail.com>
2012-05-31 21:17:07 -04:00
James McCoy
8b38e3e859
Change autocmd check to look for GnuPG group
...
Signed-off-by: James McCoy <vega.james@gmail.com>
2012-05-31 00:31:56 -04:00
James McCoy
0f4778240f
Ignore expired keys.
...
Signed-off-by: James McCoy <vega.james@gmail.com>
2012-05-31 00:31:36 -04:00
James McCoy
9329403402
GPGFinishRecipientsBuffer: Use the GPG ID, if present, to avoid repeat prompts
...
Whenever GPGFinishRecipientsBuffer is called, the buffer is processed to
convert names to IDs. However, this was ignoring any existing ID information
in the buffer. This meant that if a person had multiple keys, the user would
be prompted to disambiguate the keys after every :GPGEditRecipients session.
Parsing the ID out of the recipients buffer avoids the unnecessary prompting.
Signed-off-by: James McCoy <vega.james@gmail.com>
2012-05-30 23:48:43 -04:00
James McCoy
b2b4e7525c
Pull the key pattern out to a constant
...
Signed-off-by: James McCoy <vega.james@gmail.com>
2012-05-30 23:48:24 -04:00
James McCoy
ac45a5969e
Don't wipeout the current buffer if FileReadCmd failed
...
Signed-off-by: James McCoy <vega.james@gmail.com>
2012-05-30 22:18:34 -04:00
James McCoy
1354f3447d
Suppress "N more lines" message when editing a file
...
Signed-off-by: James McCoy <vega.james@gmail.com>
2012-05-30 22:18:01 -04:00
James McCoy
256810ab64
Only disable swapfile, undofile, and viminfo when editing a file.
...
Signed-off-by: James McCoy <vega.james@gmail.com>
2012-05-30 22:17:05 -04:00
James McCoy
bceace5df6
Indicate whether GPGInit/GPGDecrypt were invoked from BufReadCmd
...
Signed-off-by: James McCoy <vega.james@gmail.com>
2012-05-30 22:15:46 -04:00
James McCoy
d7361d413c
Clear undo history as the last step of BufReadCmd
...
After opening a file, an immediate "u"/":undo" would remove the entire
contents of the buffer. Even worse, this would not set 'modified', so there
would be no indication that wasn't the actual initial state of the buffer.
Discarding undo history for a buffer requires a few steps, including making a
change. Luckily, a change is already being made (deleting the extra line left
after ":r !" the decrypted file), so discarding undo history can piggy-back on
top of that.
Signed-off-by: James McCoy <vega.james@gmail.com>
2012-05-30 21:02:40 -04:00
Alex Efros
42c2d46aa2
added doautocmd BufWritePre
2012-01-14 00:37:31 +02:00
James McCoy
648fa8821d
Document the g:GPGHomedir option
...
Signed-off-by: James McCoy <vega.james@gmail.com>
2011-11-23 17:09:42 -05:00
James McCoy
5394d0c1f1
Add support for specifying an alternate --homedir
...
Reported-By: Matt Callaway <matt.callaway@gmail.com>
Signed-off-by: James McCoy <vega.james@gmail.com>
2011-11-23 16:38:38 -05:00
James McCoy
7d102c843a
Consolidate handling of system()/:execute calls
...
Signed-off-by: James McCoy <vega.james@gmail.com>
2011-11-23 16:14:56 -05:00
James Vega
e2e53bc315
Resolve the filename when saving to follow symlinks.
...
Signed-off-by: James Vega <vega.james@gmail.com>
2011-10-18 22:00:02 -04:00
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
Markus Braun
a8838d0e86
Updated credits.
2011-07-06 08:05:43 +02:00
Markus Braun
efd23b4440
Patch by Erik Remmelzwaal
...
Make gnupg.vim work better on win32
2011-07-06 08:05:42 +02:00
Markus Braun
9e7c686de5
Patch by James Vega
...
Make use of shellescape() and fnameescape() functions which better escape filenames than previous handmade calls to escape().
2011-07-06 08:05:42 +02:00
Markus Braun
05a3e4e1f6
Reworked patch by James Vega because I don't like "continue".
2011-07-06 08:05:42 +02:00
Markus Braun
82e70cf70a
Patch by James Vega
...
Ignore duplicate recipients if the exactly same recipient is contained in multiple keyrings.
2011-07-06 08:05:42 +02:00
Markus Braun
1e5a796e0b
Patch by James Vega
...
Default to g:GPGPreferArmor = 1 for "*.asc" files if g:GPGPreferArmor is not set by the user.
2011-07-06 08:05:42 +02:00
Markus Braun
f93f113717
Added remark about keychain and seahorse
2011-07-06 08:05:42 +02:00
Markus Braun
468b9fe59c
Force sh/zsh/bash/dash compatible shellredir setting.
2011-07-06 08:05:42 +02:00
Markus Braun
d48f7364aa
Renamed GPGExec to commandline
2011-07-06 08:05:41 +02:00
Markus Braun
6d50997fff
Use '/bin/sh' instead of 'sh' as shell
2011-07-06 08:05:41 +02:00
Markus Braun
f2e0a30de8
Added more debug informations
2011-07-06 08:05:41 +02:00
Markus Braun
616192b236
Debug messages
2011-07-06 08:05:41 +02:00
Markus Braun
e53b79872a
Show an error if the buffer is not prepared for writing an encrypted file.
2011-07-06 08:05:41 +02:00
Markus Braun
062524c107
Code beautification
2011-07-06 08:05:41 +02:00
Markus Braun
b9a0a498d5
Prefix "GnuPG: " to all debug messages
2011-07-06 08:05:41 +02:00
Markus Braun
16412c1b18
Add more info about a key
...
Show ID and creation time when viewing, editing or choosing a recipient (suggested by Curt Sampson)
2011-07-06 08:05:40 +02:00
Markus Braun
b932a58be9
Another documentation change.
2011-07-06 08:05:40 +02:00
Markus Braun
8ae4e49736
Just another useless change to update revision date.
2011-07-06 08:05:40 +02:00
Markus Braun
a817a3bfa1
Tim Swast patch for signed files
2011-07-06 08:05:40 +02:00
Markus Braun
da53fc98f0
Added section "Known Issues:" to documentation.
2011-07-06 08:05:40 +02:00
Markus Braun
b426430ff8
This is just a stupid change, more ore less to update Id and Revision keywords
2011-07-06 08:05:40 +02:00
Markus Braun
666d1e10f5
Unix/windows specific settings done right :-)
2011-07-06 08:05:40 +02:00
Markus Braun
54faa743b2
Correct error in redirection.
2011-07-06 08:05:40 +02:00
Markus Braun
12ac7f9f03
Use has("unix") to determine between windows and unix.
2011-07-06 08:05:39 +02:00
Markus Braun
478aeb9196
Correctly use backticks for determining the tty
2011-07-06 08:05:39 +02:00
Markus Braun
aecfdde11d
Make sure that sensitive data is never written unencrypted.
...
It is better to write an empty buffer to the file instead.
2011-07-06 08:05:39 +02:00
Markus Braun
6a0bdcf05c
added function to cleanup on leaving vim
...
For now create a new, empty buffer before leaving to wipe out data on console.
2011-07-06 08:05:39 +02:00
Markus Braun
9425fd6754
Code beautification
2011-07-06 08:05:39 +02:00
Markus Braun
c4b203d17c
Patch from Sebastian Luettich
...
Fix issue with symmetric encryption and set recipients.
2011-07-06 08:05:39 +02:00
Markus Braun
a3f589f5e2
Make sure the variable "g:GPGDefaultRecipients" exists
2011-07-06 08:05:39 +02:00
Markus Braun
9278fb2d33
Added support for default recipients.
2011-07-06 08:05:39 +02:00
Markus Braun
31a518148b
Updated documentation.
2011-07-06 08:05:38 +02:00