<?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; gvim</title>
	<atom:link href="http://davidnash.com.au/tag/gvim/feed/" rel="self" type="application/rss+xml" />
	<link>http://davidnash.com.au</link>
	<description>Freelance PHP developer - builder of high-quality dynamic websites</description>
	<lastBuildDate>Sun, 25 Jul 2010 23:56:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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/</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 it&#8217;s in your [...]]]></description>
			<content:encoded><![CDATA[<p>By default vim opens .ss files with some other file format syntax highlighting.</p>
<p>To enable HTML (actually XHTML) syntax highlighting on your .SS Silverstripe template files, create (or edit) your <strong>~/.vim/filetype.vim</strong> file. Then enter this:</p>
<pre>au BufNewFile,BufRead *.ss      setf xhtml</pre>
<p>Then open a .ss file and it&#8217;ll give you nice HTML syntax highlighting. And because it&#8217;s in your home directory, it&#8217;ll keep working even after you upgrade vim.</p>



Share:


	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fdavidnash.com.au%2F2009%2F08%2Fhtml-syntax-highlighting-for-silverstripe-ss-template-files-in-vim%2F&amp;title=HTML%20syntax%20highlighting%20for%20Silverstripe%20.ss%20template%20files%20in%20vim" title="del.icio.us"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fdavidnash.com.au%2F2009%2F08%2Fhtml-syntax-highlighting-for-silverstripe-ss-template-files-in-vim%2F&amp;t=HTML%20syntax%20highlighting%20for%20Silverstripe%20.ss%20template%20files%20in%20vim" title="Facebook"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fdavidnash.com.au%2F2009%2F08%2Fhtml-syntax-highlighting-for-silverstripe-ss-template-files-in-vim%2F&amp;title=HTML%20syntax%20highlighting%20for%20Silverstripe%20.ss%20template%20files%20in%20vim" title="Google"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="mailto:?subject=HTML%20syntax%20highlighting%20for%20Silverstripe%20.ss%20template%20files%20in%20vim&amp;body=http%3A%2F%2Fdavidnash.com.au%2F2009%2F08%2Fhtml-syntax-highlighting-for-silverstripe-ss-template-files-in-vim%2F" title="E-mail this story to a friend!"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fdavidnash.com.au%2F2009%2F08%2Fhtml-syntax-highlighting-for-silverstripe-ss-template-files-in-vim%2F" title="Technorati"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fdavidnash.com.au%2F2009%2F08%2Fhtml-syntax-highlighting-for-silverstripe-ss-template-files-in-vim%2F" title="TwitThis"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<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/</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



Share:


	
	
	
	
	
	


]]></description>
			<content:encoded><![CDATA[<p>When upgrading a website you might see source code like this:</p>
<pre>&lt;span style="font-family: Arial; color: #0000ff; font-size: small;"&gt;Some text goes here&lt;/span&gt;</pre>
<p>You&#8217;re using CSS now and all those &lt;span&gt; tags are ruining it. In gvim, do this search and substitute:</p>
<blockquote><p>%s/&lt;span.\{-}&gt;//g</p></blockquote>
<p>Then to get rid of the &lt;/span&gt; tags, do this:</p>
<blockquote><p>:%s/&lt;\/span&gt;//g</p></blockquote>



Share:


	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fdavidnash.com.au%2F2009%2F04%2Fstrip-span-tags-from-html-in-vim%2F&amp;title=Strip%20%26lt%3Bspan%26gt%3B%20tags%20from%20HTML%20in%20vim" title="del.icio.us"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fdavidnash.com.au%2F2009%2F04%2Fstrip-span-tags-from-html-in-vim%2F&amp;t=Strip%20%26lt%3Bspan%26gt%3B%20tags%20from%20HTML%20in%20vim" title="Facebook"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fdavidnash.com.au%2F2009%2F04%2Fstrip-span-tags-from-html-in-vim%2F&amp;title=Strip%20%26lt%3Bspan%26gt%3B%20tags%20from%20HTML%20in%20vim" title="Google"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="mailto:?subject=Strip%20%26lt%3Bspan%26gt%3B%20tags%20from%20HTML%20in%20vim&amp;body=http%3A%2F%2Fdavidnash.com.au%2F2009%2F04%2Fstrip-span-tags-from-html-in-vim%2F" title="E-mail this story to a friend!"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fdavidnash.com.au%2F2009%2F04%2Fstrip-span-tags-from-html-in-vim%2F" title="Technorati"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fdavidnash.com.au%2F2009%2F04%2Fstrip-span-tags-from-html-in-vim%2F" title="TwitThis"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://davidnash.com.au/2009/04/strip-span-tags-from-html-in-vim/feed/</wfw:commentRss>
		<slash:comments>0</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/</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.



Share:


	
	
	
	
	
	


]]></description>
			<content:encoded><![CDATA[<p>If there are ^M at the end of every line when you view them in vim, you can do this:<br />
<code>:%s/^M//g</code><br />
To get the &#8220;^M&#8221; bit, hit ctrl-v and then ctrl-m.</p>



Share:


	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fdavidnash.com.au%2F2009%2F02%2Fstrip-m-from-file-in-vim%2F&amp;title=Strip%20%5EM%20from%20file%20in%20vim" title="del.icio.us"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fdavidnash.com.au%2F2009%2F02%2Fstrip-m-from-file-in-vim%2F&amp;t=Strip%20%5EM%20from%20file%20in%20vim" title="Facebook"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fdavidnash.com.au%2F2009%2F02%2Fstrip-m-from-file-in-vim%2F&amp;title=Strip%20%5EM%20from%20file%20in%20vim" title="Google"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="mailto:?subject=Strip%20%5EM%20from%20file%20in%20vim&amp;body=http%3A%2F%2Fdavidnash.com.au%2F2009%2F02%2Fstrip-m-from-file-in-vim%2F" title="E-mail this story to a friend!"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fdavidnash.com.au%2F2009%2F02%2Fstrip-m-from-file-in-vim%2F" title="Technorati"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fdavidnash.com.au%2F2009%2F02%2Fstrip-m-from-file-in-vim%2F" title="TwitThis"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://davidnash.com.au/2009/02/strip-m-from-file-in-vim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
