<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Perform GnuPG Functions Within Vim</title>
	<atom:link href="http://www.savvyadmin.com/perform-gnupg-functions-within-vim/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.savvyadmin.com/perform-gnupg-functions-within-vim/</link>
	<description>For savvy admins everywhere...</description>
	<pubDate>Fri, 21 Nov 2008 21:17:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: pqs</title>
		<link>http://www.savvyadmin.com/perform-gnupg-functions-within-vim/#comment-89</link>
		<dc:creator>pqs</dc:creator>
		<pubDate>Mon, 17 Mar 2008 10:53:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.savvyadmin.com/2007/10/08/perform-gnupg-functions-within-vim/#comment-89</guid>
		<description>Thanks, it works fine to me like this. :-)</description>
		<content:encoded><![CDATA[<p>Thanks, it works fine to me like this. :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gmendoza</title>
		<link>http://www.savvyadmin.com/perform-gnupg-functions-within-vim/#comment-77</link>
		<dc:creator>gmendoza</dc:creator>
		<pubDate>Tue, 19 Feb 2008 17:08:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.savvyadmin.com/2007/10/08/perform-gnupg-functions-within-vim/#comment-77</guid>
		<description>Interestingly, I have confirmed the same behavior.  It has to do with the way gvim starts (forks) with it's own Parent PID, and that it has no TTY associated with the process.

When launching gvim, use the -f option, either at the command line or by editing your launcher to include the variable.

&lt;code&gt;$ gvim -f&lt;/code&gt;

You can see what I'm referring to by checking out the process tree.  Here you can compare the PPID's, and TTY of both gvim and vim.

&lt;code&gt;$ ps -ef &#124; grep vim
UID        PID  PPID  C STIME TTY          TIME CMD
gmendoza 31432     1  0 08:48 ?        00:00:00 gvim
gmendoza 31455 29799  0 08:49 pts/0    00:00:00 vim&lt;/code&gt;

You can also see this with "pstree" for a nice visual.

In my search, there were numerous references to the above error which suggested using the --batch and --no-tty options, but batch mode needs a passphrase supplied at the command line, or some other form of auth, e.g. private key, etc.  Not a good solution obviously.  The -f option does exactly what we need.</description>
		<content:encoded><![CDATA[<p>Interestingly, I have confirmed the same behavior.  It has to do with the way gvim starts (forks) with it&#8217;s own Parent PID, and that it has no TTY associated with the process.</p>
<p>When launching gvim, use the -f option, either at the command line or by editing your launcher to include the variable.</p>
<p><code>$ gvim -f</code></p>
<p>You can see what I&#8217;m referring to by checking out the process tree.  Here you can compare the PPID&#8217;s, and TTY of both gvim and vim.</p>
<p><code>$ ps -ef | grep vim<br />
UID        PID  PPID  C STIME TTY          TIME CMD<br />
gmendoza 31432     1  0 08:48 ?        00:00:00 gvim<br />
gmendoza 31455 29799  0 08:49 pts/0    00:00:00 vim</code></p>
<p>You can also see this with &#8220;pstree&#8221; for a nice visual.</p>
<p>In my search, there were numerous references to the above error which suggested using the &#8211;batch and &#8211;no-tty options, but batch mode needs a passphrase supplied at the command line, or some other form of auth, e.g. private key, etc.  Not a good solution obviously.  The -f option does exactly what we need.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pqs</title>
		<link>http://www.savvyadmin.com/perform-gnupg-functions-within-vim/#comment-76</link>
		<dc:creator>pqs</dc:creator>
		<pubDate>Tue, 19 Feb 2008 09:12:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.savvyadmin.com/2007/10/08/perform-gnupg-functions-within-vim/#comment-76</guid>
		<description>Hello, for me this works only from a terminal. It doesn't work using gvim. 

gpg: cannot open `/dev/tty'

do you know if there is a workarround?

thanks</description>
		<content:encoded><![CDATA[<p>Hello, for me this works only from a terminal. It doesn&#8217;t work using gvim. </p>
<p>gpg: cannot open `/dev/tty&#8217;</p>
<p>do you know if there is a workarround?</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: blacky</title>
		<link>http://www.savvyadmin.com/perform-gnupg-functions-within-vim/#comment-75</link>
		<dc:creator>blacky</dc:creator>
		<pubDate>Fri, 15 Feb 2008 19:28:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.savvyadmin.com/2007/10/08/perform-gnupg-functions-within-vim/#comment-75</guid>
		<description>I have found another plugin that will do what I used to do with vim. It has the disadvantage of not allowing asymetric encryption, so all people who edit/read the file have to know the passphrase. As I used vim mainly as a password safe, this is no problem for me. The plugin can be found here:

&lt;a href="http://www.noah.org/wiki/Password_Safe_with_Vim_and_OpenSSL" rel="nofollow"&gt;openssl.vim&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>I have found another plugin that will do what I used to do with vim. It has the disadvantage of not allowing asymetric encryption, so all people who edit/read the file have to know the passphrase. As I used vim mainly as a password safe, this is no problem for me. The plugin can be found here:</p>
<p><a href="http://www.noah.org/wiki/Password_Safe_with_Vim_and_OpenSSL" rel="nofollow">openssl.vim</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.savvyadmin.com/perform-gnupg-functions-within-vim/#comment-70</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Wed, 06 Feb 2008 04:43:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.savvyadmin.com/2007/10/08/perform-gnupg-functions-within-vim/#comment-70</guid>
		<description>Would something as simple as this added to vimrc address the .viminfo and related concerns?

 augroup encrypted
         au!
         " First make sure nothing is written to ~/.viminfo while editing an encrypted file.
         autocmd BufReadPre,FileReadPre,BufNewFile      *.gpg,*.asc set viminfo=
         " We don't want a swap file, as it writes unencrypted data to disk.
         autocmd BufReadPre,FileReadPre,BufNewFile      *.gpg,*.asc set  noswapfile
augroup END</description>
		<content:encoded><![CDATA[<p>Would something as simple as this added to vimrc address the .viminfo and related concerns?</p>
<p> augroup encrypted<br />
         au!<br />
         &#8221; First make sure nothing is written to ~/.viminfo while editing an encrypted file.<br />
         autocmd BufReadPre,FileReadPre,BufNewFile      *.gpg,*.asc set viminfo=<br />
         &#8221; We don&#8217;t want a swap file, as it writes unencrypted data to disk.<br />
         autocmd BufReadPre,FileReadPre,BufNewFile      *.gpg,*.asc set  noswapfile<br />
augroup END</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gmendoza</title>
		<link>http://www.savvyadmin.com/perform-gnupg-functions-within-vim/#comment-65</link>
		<dc:creator>gmendoza</dc:creator>
		<pubDate>Fri, 28 Dec 2007 17:09:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.savvyadmin.com/2007/10/08/perform-gnupg-functions-within-vim/#comment-65</guid>
		<description>Agreed.  This is a common issue that people should always understand when encrypting files.  Vim, as with many other applications, typically leave behind trails or copies of unencrypted data.  e.g. Office applications, log files, even bash command history.  Even if these files are "securely" wiped, most journaled file systems retain copies of data elsewhere on the disk, and they can be easily restored using forensic utilities.  To use PGP as your only line of defense for privacy would be foolish.  After all, it is just named "Pretty Good Privacy".  :-)

Thanks for your valued input!</description>
		<content:encoded><![CDATA[<p>Agreed.  This is a common issue that people should always understand when encrypting files.  Vim, as with many other applications, typically leave behind trails or copies of unencrypted data.  e.g. Office applications, log files, even bash command history.  Even if these files are &#8220;securely&#8221; wiped, most journaled file systems retain copies of data elsewhere on the disk, and they can be easily restored using forensic utilities.  To use PGP as your only line of defense for privacy would be foolish.  After all, it is just named &#8220;Pretty Good Privacy&#8221;.  :-)</p>
<p>Thanks for your valued input!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: blacky</title>
		<link>http://www.savvyadmin.com/perform-gnupg-functions-within-vim/#comment-62</link>
		<dc:creator>blacky</dc:creator>
		<pubDate>Fri, 28 Dec 2007 10:44:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.savvyadmin.com/2007/10/08/perform-gnupg-functions-within-vim/#comment-62</guid>
		<description>While this is all nice, it has a caveat: vim tends to leave around .viminfo and similar files that contain plaintext versions (or parts) of the file edited. One can take measures against that. There's a vim script (can be found over at vim.org) that takes care of all that.

Unfortunately, it doesn't work well if you use vim with gnupg2 and without gpg-agent. Still, it might be worth a look.

It doesn't replace the signing-part but it's nice if you want to autocrypt files on you disk.</description>
		<content:encoded><![CDATA[<p>While this is all nice, it has a caveat: vim tends to leave around .viminfo and similar files that contain plaintext versions (or parts) of the file edited. One can take measures against that. There&#8217;s a vim script (can be found over at vim.org) that takes care of all that.</p>
<p>Unfortunately, it doesn&#8217;t work well if you use vim with gnupg2 and without gpg-agent. Still, it might be worth a look.</p>
<p>It doesn&#8217;t replace the signing-part but it&#8217;s nice if you want to autocrypt files on you disk.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
