<?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>tech stuff &#187; syntax colors</title>
	<atom:link href="http://codytaylor.org/tag/syntax-colors/feed" rel="self" type="application/rss+xml" />
	<link>http://codytaylor.org</link>
	<description>From Cody Taylor.</description>
	<lastBuildDate>Sun, 30 Oct 2011 04:15:41 +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>Vim Syntax Highlighting With .vimrc</title>
		<link>http://codytaylor.org/2009/09/vim-syntax-highlighting-with-vimrc.html</link>
		<comments>http://codytaylor.org/2009/09/vim-syntax-highlighting-with-vimrc.html#comments</comments>
		<pubDate>Thu, 01 Oct 2009 00:45:24 +0000</pubDate>
		<dc:creator>Cody Taylor</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[reference]]></category>
		<category><![CDATA[syntax]]></category>
		<category><![CDATA[syntax colors]]></category>
		<category><![CDATA[syntax highlighting]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[vimrc]]></category>

		<guid isPermaLink="false">http://codytaylor.org/?p=14289</guid>
		<description><![CDATA[im is my editor of choice but I hate coding without syntax highlighting and DreamHost doesn't have Vim Syntax highlighting on by default. It is possible to type]]></description>
			<content:encoded><![CDATA[<p>I recently had to move all my sites over to a new host due to Lunarpages basically kicking me off. I chose <a href='http://www.dreamhost.com/r.cgi?587709' title='DreamHost Web Hosting'>DreamHost</a> because they were having a promotion where I get a full year for $10. One of my coworkers uses them with no complaints and they give free shell access. </p>
<p>Vim is my editor of choice but I hate coding without syntax highlighting and DreamHost doesn&#8217;t have Vim Syntax highlighting on by default. It is possible to type &#8220;:syntax enable&#8221; when already in the editor to enable syntax highlighting on the current file that you&#8217;re editing but after closing it and opening another file you will be forced to do it again.</p>
<p>To enable syntax highlighting forever I had to edit the .vimrc file which lives in my home directory. It didn&#8217;t exist so I had to create one. After I created this file I added the lines :<br />
<pre><code>
syntax enable
set background=dark
set nocompatible
set autoindent
set smartindent
set tabstop=4
set shiftwidth=4
set showmatch
set ruler
set virtualedit=all
</code></pre><br />
Alternatively you could put &#8216;background=light&#8217; which will make the colors more readable if your console is black text on a white background. The rest of those lines are just personal preference and put there so I can copy and paste them elsewhere. More info and a great example can be found at <a href='http://www.vi-improved.org/vimrc.php' title='vim site'>this vim site</a>.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fcodytaylor.org%2F2009%2F09%2Fvim-syntax-highlighting-with-vimrc.html&amp;linkname=Vim%20Syntax%20Highlighting%20With%20.vimrc"><img src="http://codytaylor.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://codytaylor.org/2009/09/vim-syntax-highlighting-with-vimrc.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

