<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Vim Tip I always forget</title>
	<atom:link href="http://nathanpowell.org/blog/archives/737/feed" rel="self" type="application/rss+xml" />
	<link>http://nathanpowell.org/blog/archives/737</link>
	<description>Bad running advice, boring family stuff, and technology few find interesting</description>
	<lastBuildDate>Tue, 31 Jan 2012 00:48:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Patrick</title>
		<link>http://nathanpowell.org/blog/archives/737/comment-page-1#comment-67128</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Wed, 29 Oct 2008 03:47:58 +0000</pubDate>
		<guid isPermaLink="false">http://nathanpowell.org/blog/archives/737#comment-67128</guid>
		<description>Using an autocommand to switch the file format automatically from dos/mac to unix for source files works as well. 

autocmd FileType perl,pm,lisp,scheme,tcl,python,c setlocal ff=unix

Another nicety strips off the trailing whitespace on writes:

function! DeleteTrailingWS()
        normal mz
        %s/\s\+$//ge
        normal `z
endfunction
if has(&quot;autocmd&quot;)
        autocmd BufWrite *.py :call DeleteTrailingWS()
endif</description>
		<content:encoded><![CDATA[<p>Using an autocommand to switch the file format automatically from dos/mac to unix for source files works as well. </p>
<p>autocmd FileType perl,pm,lisp,scheme,tcl,python,c setlocal ff=unix</p>
<p>Another nicety strips off the trailing whitespace on writes:</p>
<p>function! DeleteTrailingWS()<br />
        normal mz<br />
        %s/\s\+$//ge<br />
        normal `z<br />
endfunction<br />
if has(&#8220;autocmd&#8221;)<br />
        autocmd BufWrite *.py :call DeleteTrailingWS()<br />
endif</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay</title>
		<link>http://nathanpowell.org/blog/archives/737/comment-page-1#comment-67076</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Tue, 28 Oct 2008 17:05:49 +0000</pubDate>
		<guid isPermaLink="false">http://nathanpowell.org/blog/archives/737#comment-67076</guid>
		<description>or, from the command line:

# dos2unix filename

but I like the vim tip because not all boxes will have dos2unix (though I bet most do)</description>
		<content:encoded><![CDATA[<p>or, from the command line:</p>
<p># dos2unix filename</p>
<p>but I like the vim tip because not all boxes will have dos2unix (though I bet most do)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

