<?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>mntnoe.com &#187; tabs</title>
	<atom:link href="http://mntnoe.com/tag/tabs/feed/" rel="self" type="application/rss+xml" />
	<link>http://mntnoe.com</link>
	<description></description>
	<lastBuildDate>Sat, 24 Mar 2012 20:14:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Using existing tabs when jumping to tags and files in Vim</title>
		<link>http://mntnoe.com/2008/08/using-existing-tabs-when-jumping-to-tags-and-files-in-vim/</link>
		<comments>http://mntnoe.com/2008/08/using-existing-tabs-when-jumping-to-tags-and-files-in-vim/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 13:24:56 +0000</pubDate>
		<dc:creator>Mads Navntoft Noe</dc:creator>
				<category><![CDATA[Editors]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[tabs]]></category>
		<category><![CDATA[tags]]></category>

		<guid isPermaLink="false">http://www.mntnoe.com/?p=34</guid>
		<description><![CDATA[Update: New version available. It is ported to native Vim Script, and support has been added for wildcards in &#38;path. Download. Add the file to your .vimrc, or fit it in as a plugin. On March 27, 2008: When you use the normal gf and &#60;C-]&#62; bindings, you change the buffer in the current window. [...]]]></description>
			<content:encoded><![CDATA[<p><strong><span style="color: #ff0000;">Update:</span></strong> New version available. It is ported to native Vim Script, and support has been added for wildcards in <em>&amp;path</em>. <a href="http://www.mntnoe.com/wp-content/uploads/2008/08/tabfind.vim">Download</a>. Add the file to your .vimrc, or fit it in as a plugin.</p>
<p><em>On March 27, 2008:</em></p>
<p>When you use the normal <em>gf</em> and <em>&lt;C-]&gt;</em> bindings, you change the buffer in the current window. There is also an option to create a new window when doing it, but there are no way to reuse windows that already show the corresponding buffer, at least not natively.</p>
<p>You can reuse tabs and windows (like other IDE&#8217;s) with <a title="findtab.py" href="http://www.mntnoe.com/wp-content/uploads/2008/03/findtab.py">findtab.py</a>, which is a simple Python script consisting of three functions. To use it, add something like the following to your .vimrc:</p>
<pre>pyfile ~/.vim/extern/findtab.py</pre>
<pre>nnoremap &lt;M-]&gt; :python TabTag()&lt;Cr&gt;
nnoremap &lt;C-w&gt;&lt;M-f&gt; :python TabFile()&lt;Cr&gt;</pre>
<p>I have tried to make <em>TabFile()</em> work like <em>gf</em>, supporting <em>path</em>, <em>includeexpr</em> and <em>suffixesadd</em>. I  think <em>TabTag()</em> works like <em>&lt;C-]&gt;</em>. The script also supplies a general Python function called <em>FindTag(filename)</em>. It works as you think&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://mntnoe.com/2008/08/using-existing-tabs-when-jumping-to-tags-and-files-in-vim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Effective use of Tabs in Vim</title>
		<link>http://mntnoe.com/2008/03/effective-use-of-tabs-in-vim/</link>
		<comments>http://mntnoe.com/2008/03/effective-use-of-tabs-in-vim/#comments</comments>
		<pubDate>Thu, 20 Mar 2008 20:58:25 +0000</pubDate>
		<dc:creator>Mads Navntoft Noe</dc:creator>
				<category><![CDATA[Editors]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[tabs]]></category>

		<guid isPermaLink="false">http://www.mntnoe.com/?p=31</guid>
		<description><![CDATA[This is a simple, but important tip: Tabbed interfaces have emerged everywhere, and also Vim 7 comes with support for it. For projects consisting of multiple files, I find it easier to work with tabs than with split windows and multiple buffers. Of course we need some better keybindings: inoremap &#60;M-n&#62; &#60;C-o&#62;gt inoremap &#60;M-p&#62; &#60;C-o&#62;gT [...]]]></description>
			<content:encoded><![CDATA[<p>This is a simple, but important tip:</p>
<p>Tabbed interfaces have emerged everywhere,  and also Vim 7 comes with support for it. For projects consisting of multiple files, I find it easier to work with tabs than with split windows and multiple buffers. Of course we need some better keybindings:</p>
<pre>inoremap &lt;M-n&gt; &lt;C-o&gt;gt
inoremap &lt;M-p&gt; &lt;C-o&gt;gT
inoremap &lt;M-w&gt; &lt;Esc&gt;:tabclose&lt;Cr&gt;
inoremap &lt;M-t&gt; &lt;Esc&gt;:tabe&lt;Cr&gt;</pre>
<pre>nnoremap &lt;M-n&gt; gt
nnoremap &lt;M-p&gt; gT
nnoremap &lt;M-w&gt; :tabclose&lt;Cr&gt;
nnoremap &lt;M-t&gt; :tabe&lt;Cr&gt;</pre>
<p>Also, making the tab bar always visible encourages you to use them more:</p>
<pre>set showtabline=2</pre>
<p>Now remember to use the -p parameter when you open Vim with multiple files:</p>
<pre>vim -p *.tex</pre>
<p>Having multiple files open in for instance LaTeX projects also allows you to use completion in  references to labels in the corresponding files.</p>
<p>BTW add colon and underscore to <em>iskeyword</em> to enable completion for labels like fig:nice_figure. Oh yes, and use <a href="http://vim-latex.sourceforge.net/">latex-suite</a>&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://mntnoe.com/2008/03/effective-use-of-tabs-in-vim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

