<?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>Derek Wyatt&#039;s Blog &#187; Vim</title>
	<atom:link href="http://www.derekwyatt.org/tag/vim/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.derekwyatt.org</link>
	<description>Vim... and stuff</description>
	<lastBuildDate>Thu, 26 Jan 2012 01:31:19 +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>My Vim config is on GitHub</title>
		<link>http://www.derekwyatt.org/2011/07/05/my-vim-config-is-on-github/</link>
		<comments>http://www.derekwyatt.org/2011/07/05/my-vim-config-is-on-github/#comments</comments>
		<pubDate>Tue, 05 Jul 2011 18:09:50 +0000</pubDate>
		<dc:creator>Derek Wyatt</dc:creator>
				<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://derekwyatt.org/2011/07/05/my-vim-config-is-on-github/</guid>
		<description><![CDATA[I&#8217;ve put my Vim configuration on GitHub now. Have a gander at http://github.com/derekwyatt/vim-config]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve put my Vim configuration on GitHub now. Have a gander at <a href="http://github.com/derekwyatt/vim-config">http://github.com/derekwyatt/vim-config</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.derekwyatt.org/2011/07/05/my-vim-config-is-on-github/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Added protodef and fswitch to GitHub</title>
		<link>http://www.derekwyatt.org/2010/10/27/added-protodef-and-fswitch-to-github/</link>
		<comments>http://www.derekwyatt.org/2010/10/27/added-protodef-and-fswitch-to-github/#comments</comments>
		<pubDate>Wed, 27 Oct 2010 21:11:49 +0000</pubDate>
		<dc:creator>Derek Wyatt</dc:creator>
				<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://www.derekwyatt.org/2010/10/27/added-protodef-and-fswitch-to-github/</guid>
		<description><![CDATA[Well, I got another patch from someone for protodef. It was just getting silly that I didn&#8217;t have anywhere to actually put this stuff and I was getting tired of people sending patches :). Now y&#8217;all can just fix stuff for me directly&#8230; go to it. Head here for protodef. Head here for fswitch.]]></description>
			<content:encoded><![CDATA[<p>Well, I got another patch from someone for <a href="http://github.com/ewiplayer/vim-protodef">protodef</a>.  It was just getting silly that I didn&#8217;t have anywhere to actually put this stuff and I was getting tired of people sending patches :).  Now y&#8217;all can just fix stuff for me directly&#8230; go to it.</p>
<p><a href="http://github.com/ewiplayer/vim-protodef">Head here for protodef</a>.<br />
<a href="http://github.com/ewiplayer/vim-fswitch">Head here for fswitch</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.derekwyatt.org/2010/10/27/added-protodef-and-fswitch-to-github/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ProtoDef and FSwitch updated (finally)</title>
		<link>http://www.derekwyatt.org/2010/10/12/protodef-and-fswitch-updated-finally/</link>
		<comments>http://www.derekwyatt.org/2010/10/12/protodef-and-fswitch-updated-finally/#comments</comments>
		<pubDate>Tue, 12 Oct 2010 20:29:55 +0000</pubDate>
		<dc:creator>Derek Wyatt</dc:creator>
				<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://www.derekwyatt.org/2010/10/12/protodef-and-fswitch-updated-finally/</guid>
		<description><![CDATA[I&#8217;ve finally updated FSwitch and ProtoDef after a long time waiting. Three guys gave me patches over many months and I&#8217;ve finally put them together into an actual couple of releases. Thanks to Matt Spear, Timon Kelter and Dmitry Bashkatov. Sorry about the wait fellas.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve finally updated <a href="http://www.vim.org/scripts/script.php?script_id=2590">FSwitch</a> and <a href="http://www.vim.org/scripts/script.php?script_id=2624">ProtoDef</a> after a long time waiting.  Three guys gave me patches over many months and I&#8217;ve finally put them together into an actual couple of releases.</p>
<p>Thanks to Matt Spear, Timon Kelter and Dmitry Bashkatov.  Sorry about the wait fellas.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.derekwyatt.org/2010/10/12/protodef-and-fswitch-updated-finally/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Pathogen, baby!</title>
		<link>http://www.derekwyatt.org/2010/10/12/pathogen-baby/</link>
		<comments>http://www.derekwyatt.org/2010/10/12/pathogen-baby/#comments</comments>
		<pubDate>Tue, 12 Oct 2010 18:58:58 +0000</pubDate>
		<dc:creator>Derek Wyatt</dc:creator>
				<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://derekwyatt.org/2010/10/12/pathogen-baby/</guid>
		<description><![CDATA[So there&#8217;s been some scuttlebutt on the Twitters recently regarding this &#8220;Pathogen&#8221; script for Vim and I decided to have a look. In a word? &#8220;Sweet&#8221;. In a few words? Tim Pope is the absolute man. This is an extremely simple and elegant script. All it does is manipulate the &#8216;runtimepath&#8217; but it has a [...]]]></description>
			<content:encoded><![CDATA[<p>So there&#8217;s been some scuttlebutt on the Twitters recently regarding this <a href="http://www.vim.org/scripts/script.php?script_id=2332"  alt="">&#8220;Pathogen&#8221; script for Vim</a> and I decided to have a look. In a word?  &#8220;Sweet&#8221;. In a few words?  <a href="http://www.vim.org/account/profile.php?user_id=9012"  alt="Tim Pope">Tim Pope</a> is the absolute man.</p>
<p>This is an extremely simple and elegant script. All it does is manipulate the <a href="http://vimdoc.sourceforge.net/htmldoc/options.html#'runtimepath'"  alt="'runtimepath'">&#8216;runtimepath&#8217;</a> but it has a nice focus on allowing you to componentize your Vim extensions into their own, private <a href="http://vimdoc.sourceforge.net/htmldoc/options.html#'runtimepath'"  alt="'runtimepath'">&#8216;runtimepath&#8217;</a> tree segments. So what? So what?!? Now you can easily upgrade your extensions by just deleting the old tree, downloading the package and exploding it in place. </p>
<p>This would have saved my ass when <a href="http://www.vim.org/scripts/script.php?script_id=2611"  alt="">xptemplate</a> went through a revision that deleted files, and I didn&#8217;t notice. Having unwanted, autoloaded files in place was not a good thing. </p>
<p>And you can also just toss git suppositories straight into this as well &#8211; perfect updating. </p>
<p>Check out <a href="http://tammersaleh.com"  alt="Tammer Saleh">Tammer Saleh</a>&#8216;s post called <a href="http://tammersaleh.com/posts/the-modern-vim-config-with-pathogen"  alt="The Modern Vim Config with Pathogen">The Modern Vim Config with Pathogen</a> for a concise description on how to get it into your vimrc. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.derekwyatt.org/2010/10/12/pathogen-baby/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>New Vim Screencasts found at Lococast.Net</title>
		<link>http://www.derekwyatt.org/2010/10/05/new-vim-screencasts-found-at-lococast-net/</link>
		<comments>http://www.derekwyatt.org/2010/10/05/new-vim-screencasts-found-at-lococast-net/#comments</comments>
		<pubDate>Tue, 05 Oct 2010 19:38:58 +0000</pubDate>
		<dc:creator>Derek Wyatt</dc:creator>
				<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://www.derekwyatt.org/2010/10/05/new-vim-screencasts-found-at-lococast-net/</guid>
		<description><![CDATA[Rick over at Lococast.Net has some great screencasts up for Vim. I&#8217;ve watched a couple of them now, and I&#8217;m a happy dood&#8230; nice stuff! Go check &#8216;em out. Go&#8230; go now&#8230; stop&#8230; no, don&#8217;t do that, you know what I mean&#8230; that thing you were going to do, that dirty, naughty, disgusting thing?? Yeah, [...]]]></description>
			<content:encoded><![CDATA[<p>Rick over at <a href="http://lococast.net/">Lococast.Net</a> has some great screencasts up for Vim.  I&#8217;ve watched a couple of them now, and I&#8217;m a happy dood&#8230; nice stuff!  Go check &#8216;em out.  Go&#8230; go now&#8230; stop&#8230; no, don&#8217;t do that, you know what I mean&#8230; that thing you were going to do, that dirty, naughty, disgusting thing??  Yeah, that.  Don&#8217;t.  Go watch his screencasts instead.  Go <a href="http://Lococast.net/">here instead</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.derekwyatt.org/2010/10/05/new-vim-screencasts-found-at-lococast-net/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New Video Tutorial &#8211; Globals, Command-Line and Functions</title>
		<link>http://www.derekwyatt.org/2010/09/30/new-video-tutorial-globals-command-line-and-functions/</link>
		<comments>http://www.derekwyatt.org/2010/09/30/new-video-tutorial-globals-command-line-and-functions/#comments</comments>
		<pubDate>Thu, 30 Sep 2010 22:16:29 +0000</pubDate>
		<dc:creator>Derek Wyatt</dc:creator>
				<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://www.derekwyatt.org/2010/09/30/new-video-tutorial-globals-command-line-and-functions/</guid>
		<description><![CDATA[There&#8217;s a new video online in the Advanced Section called Globals, Commands and Functions. Go check it out.]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s a new video online in the <a href="/vim/vim-tutorial-videos/vim-advanced-tutorial-videos/">Advanced Section</a> called <a href="/vim/vim-tutorial-videos/vim-advanced-tutorial-videos/#globals-commands-functions">Globals, Commands and Functions</a>.  Go check it out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.derekwyatt.org/2010/09/30/new-video-tutorial-globals-command-line-and-functions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silently Redirecting to the Vim Clipboard</title>
		<link>http://www.derekwyatt.org/2010/09/30/silently-redirecting-to-the-vim-clipboard/</link>
		<comments>http://www.derekwyatt.org/2010/09/30/silently-redirecting-to-the-vim-clipboard/#comments</comments>
		<pubDate>Thu, 30 Sep 2010 15:29:51 +0000</pubDate>
		<dc:creator>Derek Wyatt</dc:creator>
				<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://derekwyatt.org/2010/09/30/silently-redirecting-to-the-vim-clipboard/</guid>
		<description><![CDATA[In an upcoming video tutorial, I&#8217;ll be doing a bit of work with the :redir command. This is a great Vim facility but it can be helped with a function wrapper. I&#8217;m including that wrapper here: function! RedirToClipboardFunction(cmd, ...) let cmd = a:cmd . " " . join(a:000, " ") redir @*&#62; exe cmd redir [...]]]></description>
			<content:encoded><![CDATA[<p>In an upcoming video tutorial, I&#8217;ll be doing a bit of work with the <a href="http://vimdoc.sourceforge.net/htmldoc/various.html#:redir"  alt=":redir">:redir</a> command. This is a great Vim facility but it can be helped with a function wrapper. I&#8217;m including that wrapper here:</p>
<pre>
function! RedirToClipboardFunction(cmd, ...)
    let cmd = a:cmd . " " . join(a:000, " ")
    redir @*&gt;
    exe cmd
    redir END
endfunction

command! -complete=command -nargs=+ RedirToClipboard
    \ silent! call RedirToClipbaordFunction(&lt;f -args&gt;)
</pre>
<p>This function allows you to run a command (such as <a href="http://vimdoc.sourceforge.net/htmldoc/cmdline.html#:history"  alt=":history">:history</a>, hint hint) and have the contents placed to the clipboard that you can then paste somewhere else.</p>
<p>The command that is created just makes it easier to use.  For example:</p>
<pre>
:RedirToClipboard history : -50,
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.derekwyatt.org/2010/09/30/silently-redirecting-to-the-vim-clipboard/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>It&#8217;s been a while&#8230;</title>
		<link>http://www.derekwyatt.org/2010/01/10/its-been-a-while/</link>
		<comments>http://www.derekwyatt.org/2010/01/10/its-been-a-while/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 14:19:48 +0000</pubDate>
		<dc:creator>Derek Wyatt</dc:creator>
				<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://www.derekwyatt.org/2010/01/10/its-been-a-while/</guid>
		<description><![CDATA[I&#8217;ve had a number of people ask me when my next Vim Video is going to go online&#8230; I know it&#8217;s been a while since I put one up, and unfortunately it&#8217;s going to be a while longer. Work has picked up in the last little while and on top of that, I&#8217;m buying a [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had a number of people ask me when my next <a href="/vim/vim-tutorial-videos/">Vim Video</a> is going to go online&#8230; I know it&#8217;s been a while since I put one up, and unfortunately it&#8217;s going to be a while longer.</p>
<p>Work has picked up in the last little while and on top of that, I&#8217;m buying a new house and am preparing for the move.  After the move finishes I should be able to do another one.  The only real problem is that the new videos are going to be of the intermediate and advanced quality and those take a lot more thought and time :)</p>
<p>I appreciate all the great responses, encouragement and all the interest!  Keep reading those help files and stay tuned&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.derekwyatt.org/2010/01/10/its-been-a-while/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Changing settings / options based on filetype in Vim</title>
		<link>http://www.derekwyatt.org/2009/11/01/changing-settings-options-based-on-filetype-in-vim/</link>
		<comments>http://www.derekwyatt.org/2009/11/01/changing-settings-options-based-on-filetype-in-vim/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 06:16:59 +0000</pubDate>
		<dc:creator>Derek Wyatt</dc:creator>
				<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://www.derekwyatt.org/2009/11/01/changing-settings-options-based-on-filetype-in-vim/</guid>
		<description><![CDATA[If you want to change settings / options based on the filetype there are a couple of ways you can do it. Using an Autocommand You can do this with an autocmd in your vimrc. Let&#8217;s assume you want to change some of the indenting rules for perl and html. augroup indent_settings au! au BufEnter [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to change settings / options based on the <a href="http://vimdoc.sourceforge.net/htmldoc/filetype.html#filetype.txt">filetype</a> there are a couple of ways you can do it.</p>
<h2>Using an Autocommand</h2>
<p>You can do this with an <a href="http://vimdoc.sourceforge.net/htmldoc/autocmd.html#autocmd.txt">autocmd</a> in your <a href="http://vimdoc.sourceforge.net/htmldoc/starting.html#vimrc">vimrc</a>.  Let&#8217;s assume you want to change some of the <a href="http://vimdoc.sourceforge.net/htmldoc/indent.html#indent.txt">indenting</a> rules for <a href="http://www.perl.org/">perl</a> and <a href="http://en.wikipedia.org/wiki/HTML">html</a>.</p>
<pre>
augroup indent_settings
    au!
    au BufEnter *.pl setl autoindent smartindent
    au BufEnter *.html setl noautoindent nosmartindent
augroup END
</pre>
<p>The above will do a <a href="http://vimdoc.sourceforge.net/htmldoc/options.html#:setlocal">setlocal</a> when entering a perl or html file.  It will turn <a href="http://vimdoc.sourceforge.net/htmldoc/options.html#'autoindent'">autoindent</a> to &#8216;on&#8217; and <a href="http://vimdoc.sourceforge.net/htmldoc/options.html#'smartindent'">smartindent</a> to &#8216;on&#8217; when you enter a <a href="http://vimdoc.sourceforge.net/htmldoc/windows.html#buffers">buffer</a> containing a perl file, and will turn them off when entering a buffer containing an html file.</p>
<h2>Dropping the commands in a filetype file</h2>
<p>You can also choose to organize things into separate <a href="http://vimdoc.sourceforge.net/htmldoc/usr_41.html#ftplugin">ftplugin</a> files in your <a href="http://vimdoc.sourceforge.net/htmldoc/options.html#'runtimepath'">runtime directory</a>.  If we want to continue with the perl and html examples above, you would do the following:</p>
<p>In <code>ftplugin/perl.vim</code>:</p>
<pre>
setl autoindent
setl smartindent
</pre>
<p>In <code>ftplugin/html.vim</code>:</p>
<pre>
setl noautoindent
setl nosmartindent
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.derekwyatt.org/2009/11/01/changing-settings-options-based-on-filetype-in-vim/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Insert Mode Video now Online</title>
		<link>http://www.derekwyatt.org/2009/10/18/insert-mode-video-now-online/</link>
		<comments>http://www.derekwyatt.org/2009/10/18/insert-mode-video-now-online/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 20:09:55 +0000</pubDate>
		<dc:creator>Derek Wyatt</dc:creator>
				<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://www.derekwyatt.org/2009/10/18/insert-mode-video-now-online/</guid>
		<description><![CDATA[I&#8217;ve managed to throw together a video on Insert Mode today. I&#8217;m not supremely happy with this one&#8230; it was a bit rushed as I only had a short amount of time between the moments when my daughter pulls on my pant-leg asking me to do &#8220;something&#8221;. I may redo this one, not sure yet [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve managed to throw together a video on <a href="/vim/vim-tutorial-videos/vim-intermediate-tutorial-videos/#insert-mode">Insert Mode</a> today.  I&#8217;m not supremely happy with this one&#8230; it was a bit rushed as I only had a short amount of time between the moments when my daughter pulls on my pant-leg asking me to do &#8220;something&#8221;.</p>
<p>I may redo this one, not sure yet &#8211; it&#8217;ll just depend on how much time I&#8217;ve got.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.derekwyatt.org/2009/10/18/insert-mode-video-now-online/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

