<?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>Space Station Lambda &#187; Vim</title>
	<atom:link href="http://blog.viridian-project.de/sections/tech/vim-tech/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.viridian-project.de</link>
	<description>Leslie P. Polzer on code, music, literature, design and free software business.</description>
	<lastBuildDate>Wed, 19 May 2010 07:44:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Vim: Substitute in all buffers</title>
		<link>http://blog.viridian-project.de/2008/10/02/vim-substitute-in-all-buffers/</link>
		<comments>http://blog.viridian-project.de/2008/10/02/vim-substitute-in-all-buffers/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 16:56:44 +0000</pubDate>
		<dc:creator>Leslie</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Vim]]></category>
		<category><![CDATA[all]]></category>
		<category><![CDATA[buffers]]></category>
		<category><![CDATA[files]]></category>
		<category><![CDATA[mass]]></category>
		<category><![CDATA[multiple]]></category>
		<category><![CDATA[open]]></category>
		<category><![CDATA[replace]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[substitute]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://blog.viridian-project.de/?p=116</guid>
		<description><![CDATA[To replace all instances of FOO with BAR in one file, you&#8217;d do: :%s/FOO/BAR/g&#124;:up The pipe &#124; lets you separate multiple commands and :up is like :w but only writes changed buffers. Now for all open files: :bufdo :%s/FOO/BAR/g&#124;:up Roughly translates to: for all open buffers, substitute FOO with BAR and write the changes.]]></description>
			<content:encoded><![CDATA[<p>To replace all instances of FOO with BAR in one file, you&#8217;d do:</p>
<pre>
:%s/FOO/BAR/g|:up
</pre>
<p>The pipe | lets you separate multiple commands and :up is like :w but only writes changed buffers.</p>
<p>Now for all open files:</p>
<pre>
:bufdo :%s/FOO/BAR/g|:up
</pre>
<p>Roughly translates to: for all open buffers, substitute FOO with BAR and write the changes.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.viridian-project.de/2008/10/02/vim-substitute-in-all-buffers/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
