<?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>Rusty Razor Blade &#187; vim</title>
	<atom:link href="http://www.rustyrazorblade.com/category/vim/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rustyrazorblade.com</link>
	<description>Tech Thoughts, Mostly on LAMP - by Jon Haddad</description>
	<lastBuildDate>Fri, 03 Feb 2012 20:03:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Multiple Filetypes in Vim</title>
		<link>http://www.rustyrazorblade.com/2011/04/multiple-filetypes-in-vim/</link>
		<comments>http://www.rustyrazorblade.com/2011/04/multiple-filetypes-in-vim/#comments</comments>
		<pubDate>Wed, 27 Apr 2011 23:11:36 +0000</pubDate>
		<dc:creator>jon</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.rustyrazorblade.com/?p=1459</guid>
		<description><![CDATA[<p>I&#8217;m finding this useful as I work with snipmate and have defined custom snippets for solr config files. I still want to use the XML filetype, but I have no real use for the solr fields outside of editing the schema.xml file.</p> <p>set filetype=xml.solr</p> <p>Booya.</p>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m finding this useful as I work with snipmate and have defined custom snippets for solr config files.  I still want to use the XML filetype, but I have no real use for the solr fields outside of editing the schema.xml file.</p>
<p><code>set filetype=xml.solr</code></p>
<p>Booya.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rustyrazorblade.com/2011/04/multiple-filetypes-in-vim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Customize taglist plugin display</title>
		<link>http://www.rustyrazorblade.com/2010/10/customize-taglist-plugin-display/</link>
		<comments>http://www.rustyrazorblade.com/2010/10/customize-taglist-plugin-display/#comments</comments>
		<pubDate>Fri, 22 Oct 2010 23:16:12 +0000</pubDate>
		<dc:creator>jon</dc:creator>
				<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.rustyrazorblade.com/?p=1227</guid>
		<description><![CDATA[<p>I&#8217;ve hopped back on the VIM train recently, and I&#8217;m loving it. Command-T, NERDTree, buffer explorer and fixing my fonts in MacVIM ( set guifont=Inconsolata:h16 ) have all been essential to the move. That and the INSANELY helpful folks in #vim on freenode. </p> <p>I just read the VIM book cover to cover. Extremely useful. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve hopped back on the VIM train recently, and I&#8217;m loving it.  Command-T, NERDTree, buffer explorer and fixing my fonts in MacVIM ( set guifont=Inconsolata:h16  ) have all been essential to the move.  That and the INSANELY helpful folks in #vim on freenode.  </p>
<p>I just read the VIM book cover to cover.  Extremely useful.  I recommend it.</p>
<p>The latest thing I figured out I wanted was to make better use of ctags.  I&#8217;ve gotten used to a bunch of the completion commands, now I&#8217;m looking to browse my code better.  </p>
<p>Enter Taglist.</p>
<p>Taglist is the most downloaded script on vim.org.  It&#8217;s awesome.  And I finally figured out the only thing that&#8217;s been bugging me about it &#8211; how to only show my classes and functions in a file, ignoring variable names.  There were just too many.</p>
<p>Here&#8217;s the important part of the help file I found:</p>
<blockquote><p>In the above setting, &#8216;cpp&#8217; is the Vim filetype name and &#8216;c++&#8217; is the name<br />
used by the exuberant ctags tool. &#8216;c&#8217; and &#8216;f&#8217; are the flags passed to<br />
exuberant ctags to list C++ classes and functions and &#8216;class&#8217; is the title<br />
used for the class tags and &#8216;function&#8217; is the title used for the function tags<br />
in the taglist window.</p>
<p>For example, to display only functions defined in a C file and to use &#8220;My<br />
Functions&#8221; as the title for the function tags, use</p>
<p>	let tlist_c_settings = &#8216;c;f:My Functions&#8217;</p>
<p>When you set the tlist_xxx_settings variable, you will override the default<br />
setting used by the taglist plugin for the &#8216;xxx&#8217; language. </p></blockquote>
<p>So I did this:</p>
<blockquote><p>let tlist_php_settings = &#8216;php;c:class;f:function&#8217;</p></blockquote>
<p>and when I restarted vim, I only saw my classes and my functions.  It&#8217;s awesome.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rustyrazorblade.com/2010/10/customize-taglist-plugin-display/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Executing MySQL queries within VIM</title>
		<link>http://www.rustyrazorblade.com/2008/08/executing-mysql-queries-within-vim/</link>
		<comments>http://www.rustyrazorblade.com/2008/08/executing-mysql-queries-within-vim/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 19:51:11 +0000</pubDate>
		<dc:creator>jon</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.rustyrazorblade.com/?p=139</guid>
		<description><![CDATA[<p>I haven&#8217;t been using vim for very long, but I&#8217;ve gotten over the initial learning curve of getting used to the different editing modes. With some help from the guys in #vim on irc.freenode.net, I managed to get this gem:</p> <p> map &#60;C-d&#62; :call SwitchDB()&#60;CR&#62;<br /> :function SwitchDB()<br /> : let g:current_db = input("Database &#62; [...]]]></description>
			<content:encoded><![CDATA[<p>I haven&#8217;t been using vim for very long, but I&#8217;ve gotten over the initial learning curve of getting used to the different editing modes.  With some help from the guys in #vim on irc.freenode.net, I managed to get this gem:</p>
<blockquote><p><code> map &lt;C-d&gt; :call SwitchDB()&lt;CR&gt;<br />
 :function SwitchDB()<br />
 :   let g:current_db = input("Database &gt; ")<br />
 :endfunction</p>
<p> map &lt;C-m&gt; :call Doquery()&lt;CR&gt;<br />
 :function Doquery()<br />
 :   if !exists("g:current_db")<br />
 :       call SwitchDB()<br />
 :   endif<br />
 :   let query_string = input(g:current_db . " &gt; " )<br />
 :   if query_string != ""<br />
 :       exe "!mysql " . g:current_db . "  -e \"" .  escape(query_string, '"') . "\""<br />
 :   endif<br />
 :endfunction<br />
 </code></p></blockquote>
<p>Control-m to execute a query.  Control-d to switch databases.  It&#8217;ll prompt you the first time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rustyrazorblade.com/2008/08/executing-mysql-queries-within-vim/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

