<?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>David Nash &#187; vim</title>
	<atom:link href="http://davidnash.com.au/category/vim/feed/" rel="self" type="application/rss+xml" />
	<link>http://davidnash.com.au</link>
	<description>Wordpress Guru Sydney</description>
	<lastBuildDate>Tue, 28 Feb 2012 06:12:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Delete links across multiple HTML files in bash</title>
		<link>http://davidnash.com.au/2011/12/delete-links-across-multiple-html-files-in-bash/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=delete-links-across-multiple-html-files-in-bash</link>
		<comments>http://davidnash.com.au/2011/12/delete-links-across-multiple-html-files-in-bash/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 05:19:41 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://davidnash.com.au/?p=331</guid>
		<description><![CDATA[Or any type of file, really. I needed to quickly remove links from an old website that was using flat HTML files. In my linux command line, I found I could do: To replace all instances of SEARCH with REPLACE in *.html. Except I needed to do a fair bit of escaping, because HTML is [...]]]></description>
		<wfw:commentRss>http://davidnash.com.au/2011/12/delete-links-across-multiple-html-files-in-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML syntax highlighting for Silverstripe .ss template files in vim</title>
		<link>http://davidnash.com.au/2009/08/html-syntax-highlighting-for-silverstripe-ss-template-files-in-vim/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=html-syntax-highlighting-for-silverstripe-ss-template-files-in-vim</link>
		<comments>http://davidnash.com.au/2009/08/html-syntax-highlighting-for-silverstripe-ss-template-files-in-vim/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 06:56:40 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[silverstripe]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[xhtml]]></category>
		<category><![CDATA[gvim]]></category>

		<guid isPermaLink="false">http://davidnash.com.au/?p=186</guid>
		<description><![CDATA[By default vim opens .ss files with some other file format syntax highlighting. To enable HTML (actually XHTML) syntax highlighting on your .SS Silverstripe template files, create (or edit) your ~/.vim/filetype.vim file. Then enter this: au BufNewFile,BufRead *.ss      setf xhtml Then open a .ss file and it&#8217;ll give you nice HTML syntax highlighting. And because [...]]]></description>
		<wfw:commentRss>http://davidnash.com.au/2009/08/html-syntax-highlighting-for-silverstripe-ss-template-files-in-vim/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Strip &lt;span&gt; tags from HTML in vim</title>
		<link>http://davidnash.com.au/2009/04/strip-span-tags-from-html-in-vim/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=strip-span-tags-from-html-in-vim</link>
		<comments>http://davidnash.com.au/2009/04/strip-span-tags-from-html-in-vim/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 05:04:40 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[vim]]></category>
		<category><![CDATA[xhtml]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[gvim]]></category>

		<guid isPermaLink="false">http://davidnash.com.au/?p=159</guid>
		<description><![CDATA[When upgrading a website you might see source code like this: &#60;span style="font-family: Arial; color: #0000ff; font-size: small;"&#62;Some text goes here&#60;/span&#62; You&#8217;re using CSS now and all those &#60;span&#62; tags are ruining it. In gvim, do this search and substitute: %s/&#60;span.\{-}&#62;//g Then to get rid of the &#60;/span&#62; tags, do this: :%s/&#60;\/span&#62;//g]]></description>
		<wfw:commentRss>http://davidnash.com.au/2009/04/strip-span-tags-from-html-in-vim/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Strip ^M from file in vim</title>
		<link>http://davidnash.com.au/2009/02/strip-m-from-file-in-vim/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=strip-m-from-file-in-vim</link>
		<comments>http://davidnash.com.au/2009/02/strip-m-from-file-in-vim/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 00:28:45 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[vim]]></category>
		<category><![CDATA[carriage return]]></category>
		<category><![CDATA[gvim]]></category>
		<category><![CDATA[new line]]></category>

		<guid isPermaLink="false">http://davidnash.com.au/?p=128</guid>
		<description><![CDATA[If there are ^M at the end of every line when you view them in vim, you can do this: :%s/^M//g To get the &#8220;^M&#8221; bit, hit ctrl-v and then ctrl-m.]]></description>
		<wfw:commentRss>http://davidnash.com.au/2009/02/strip-m-from-file-in-vim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Assorted Handy vim Commands, Part 1</title>
		<link>http://davidnash.com.au/2009/01/assorted-handy-vim-commands-part-1/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=assorted-handy-vim-commands-part-1</link>
		<comments>http://davidnash.com.au/2009/01/assorted-handy-vim-commands-part-1/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 09:54:51 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[vim]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://davidnash.com.au/?p=100</guid>
		<description><![CDATA[To reverse the order of lines, eg 1-5 : 1,5 g/^/m0 For example, one two three four five becomes five four three two one To remove blank lines : %g/^$/d Delete all lines that don&#8217;t contain &#8220;string&#8221; : %v/string/d]]></description>
		<wfw:commentRss>http://davidnash.com.au/2009/01/assorted-handy-vim-commands-part-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Turn all links in an HTML file into &#8216;#&#8217;</title>
		<link>http://davidnash.com.au/2009/01/turn-all-links-in-an-html-file-into/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=turn-all-links-in-an-html-file-into</link>
		<comments>http://davidnash.com.au/2009/01/turn-all-links-in-an-html-file-into/#comments</comments>
		<pubDate>Sat, 24 Jan 2009 04:47:49 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[vim]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://davidnash.com.au/?p=91</guid>
		<description><![CDATA[Replace all in the current file instances of: &#60;a href=&#8221;link_to_somewhere.html&#8221;&#62;link&#60;/a&#62; with: &#60;a href=&#8221;#&#8221;&#62;link&#60;/a&#62; :%s/\(a href="\)\(\S\+\)\("\)/\1#\3/g This is great if you&#8217;ve got a big HTML file that you want to demo to a client where you don&#8217;t want the links to do anything when clicked. You could also use javascript to do the same thing &#8211; [...]]]></description>
		<wfw:commentRss>http://davidnash.com.au/2009/01/turn-all-links-in-an-html-file-into/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vim: Quickly assign POST variables in PHP</title>
		<link>http://davidnash.com.au/2009/01/post-variables/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=post-variables</link>
		<comments>http://davidnash.com.au/2009/01/post-variables/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 01:38:13 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[vim]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://davidnash.com.au/?p=69</guid>
		<description><![CDATA[You&#8217;ve got a web form with lots of fields, and you want to POST them to a PHP script. Open vim, and list the INPUT tag&#8217;s NAME attributes, one per line. &#60;?php firstname lastname address1 address2 state postcode ?&#62; Now with some search-and-replace magic we can save ourself a lot of boring typing. Hit &#8216;escape&#8217; [...]]]></description>
		<wfw:commentRss>http://davidnash.com.au/2009/01/post-variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

