<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Mike Gerwitz &#187; ftp</title>
	<atom:link href="http://mikegerwitz.com/tags/ftp/feed/" rel="self" type="application/rss+xml" />
	<link>http://mikegerwitz.com</link>
	<description>Free Software Hacker</description>
	<lastBuildDate>Wed, 04 Jan 2012 23:15:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Dealing With VIM: FTP Disconnects</title>
		<link>http://mikegerwitz.com/2008/11/18/dealing-with-vim-ftp-disconnects/</link>
		<comments>http://mikegerwitz.com/2008/11/18/dealing-with-vim-ftp-disconnects/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 13:40:44 +0000</pubDate>
		<dc:creator>Mike Gerwitz</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[VIM]]></category>

		<guid isPermaLink="false">http://www.mikegerwitz.com/2008/11/18/dealing-with-vim-ftp-disconnects/</guid>
		<description><![CDATA[VIM and FTP haven&#8217;t really been the greatest couple in my experience. While it does work, it tends to give me disconnected errors after being idle a while rather than handling it itself. Usually, attempting the operation again works just fine. However, there are times where not even that works and I keep receiving the [...]]]></description>
			<content:encoded><![CDATA[<p>VIM and <acronym title="File Transfer Protocol">FTP</acronym> haven&#8217;t really been the greatest couple in my experience. While it does work, it tends to give me disconnected errors after being idle a while rather than handling it itself. Usually, attempting the operation again works just fine. However, there are times where not even that works and I keep receiving the disconnected error (this often happens after the net went down and I restarted the interface).</p>
<p>When I was using Gentoo, and hadn&#8217;t installed the ftp command-line application yet, I noticed VIM complained about not having it. So I figured, what if I killed ftp when VIM was complaining about connection problems:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p41code2'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p412"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p41code2"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">killall</span> <span style="color: #c20cb9; font-weight: bold;">ftp</span></pre></td></tr></table></div>

<p>When you do so, VIM may display a message stating that a process was killed. That&#8217;s a good thing. Attempt your operation again and everything should work properly. This saves a lot of time &#8211; not having to restart VIM (especially if you work with as many splits and tabs as I do; saving the session doesn&#8217;t do much justice).</p>
<p>Hope this little trick is of some help.</p>
<hr />
<strong>Note from the future me:</strong> Rather than using <acronym title="File Transfer Protocol">FTP</acronym> to edit your files, I would recommend using a version control system, such as <a href="http://git-scm.com">Git</a>. Edit your files locally and push them to your remote repository.</p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fmikegerwitz.com%2F2008%2F11%2F18%2Fdealing-with-vim-ftp-disconnects%2F&amp;linkname=Dealing%20With%20VIM%3A%20FTP%20Disconnects">Share/Bookmark</a>]]></content:encoded>
			<wfw:commentRss>http://mikegerwitz.com/2008/11/18/dealing-with-vim-ftp-disconnects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
