<?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>Yeah it&#039;s a blog &#187; gVim</title>
	<atom:link href="http://www.owenpellegrin.com/blog/category/gvim/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.owenpellegrin.com</link>
	<description>I write stuff here</description>
	<lastBuildDate>Sun, 14 Aug 2011 17:36:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>Start gVim with Tab Pages or Windows</title>
		<link>http://www.owenpellegrin.com/blog/tricks/start-gvim-with-tab-pages-or-windows/</link>
		<comments>http://www.owenpellegrin.com/blog/tricks/start-gvim-with-tab-pages-or-windows/#comments</comments>
		<pubDate>Wed, 26 May 2010 15:29:00 +0000</pubDate>
		<dc:creator>Owen Pellegrin</dc:creator>
				<category><![CDATA[gVim]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[productivity]]></category>

		<guid isPermaLink="false">http://www.owenpellegrin.com/blog/tricks/start-gvim-with-tab-pages-or-windows/</guid>
		<description><![CDATA[I’ve recently started using gVim more when I work with text files, and it makes me sad that I ever quit using it.&#160; I’ll write more about why I think Vim is awesome in another post; this is another “It &#8230; <a href="http://www.owenpellegrin.com/blog/tricks/start-gvim-with-tab-pages-or-windows/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I’ve recently started using <a href="http://www.vim.org" target="_blank">gVim</a> more when I work with text files, and it makes me sad that I ever quit using it.&#160; I’ll write more about why I think Vim is awesome in another post; this is another “It took me a few minutes to find this so I hope I help someone else” post.</p>
<p>If you want to start gVim with tabs, the command-line switch is <code>-p[n]</code>. If you don&#8217;t specify <em>n</em>, the default is &quot;1 tab per file you specify&quot;. If you specify <em>n &lt; w files</em>, the files that don&#8217;t have tabs will be opened as buffers (see <code>:help buffers</code> for that; it&#8217;s a good topic for another post.) I&#8217;m not sure what happens for <em>n &gt; files</em>; I assume it opens <em>n</em> tabs.</p>
<p>If you want to start gVim with windows, the command-line switch is <code>-o[n]</code>. It behaves like the tabs command-line switch. </p>
<p> For those that prefer examples (I know I do!):
<dl>
<dt style="font-family: monospace">gvim foo.txt bar.txt baz.txt </dt>
<dd>gVim opens with foo.txt in the primary buffer and the other files in other buffers. </dd>
<dt style="font-family: monospace">gvim -p foo.txt bar.txt baz.txt </dt>
<dd>gVim opens with 3 tabs, one tab for each file. </dd>
<dt style="font-family: monospace">gvim -p2 foo.txt bar.txt baz.txt </dt>
<dd>gVim opens with 2 tabs. foo.txt and bar.txt are in tabs, baz.txt is in a buffer. </dd>
<dt style="font-family: monospace">gvim -o foo.txt bar.txt baz.txt </dt>
<dd>gVim opens with 3 windows, split who knows how. </dd>
</dl>
<p>The rest of the cases seem trivial to understand with these explanations.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.owenpellegrin.com/blog/tricks/start-gvim-with-tab-pages-or-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

