<?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>Zod.hu &#187; vim</title>
	<atom:link href="http://zod.hu/tag/vim/feed" rel="self" type="application/rss+xml" />
	<link>http://zod.hu</link>
	<description>Phase one: Linux, phase two: , phase three: profit!</description>
	<lastBuildDate>Wed, 11 Nov 2009 04:16:08 +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>Simple ~/.vimrc</title>
		<link>http://zod.hu/2009/03/simple-vimrc.html</link>
		<comments>http://zod.hu/2009/03/simple-vimrc.html#comments</comments>
		<pubDate>Sun, 08 Mar 2009 12:09:28 +0000</pubDate>
		<dc:creator>Zod</dc:creator>
				<category><![CDATA[Easier life]]></category>
		<category><![CDATA[.vimrc]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[indentation]]></category>
		<category><![CDATA[reformat]]></category>
		<category><![CDATA[tabs]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://zod.hu/?p=34</guid>
		<description><![CDATA[Yesterday I changed my ~/.vimrc to make programming in a terminal easier. For years now I&#8217;ve been reusing the same one. Here it is with comments: " Turn on syntax highlights. Well it's not an IDE, but makes important things stand out enough syntax on " Make tab width 4 spaces set tabstop=4 " Make [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I changed my ~/.vimrc to make programming in a terminal easier. For years now I&#8217;ve been reusing the same one.</p>
<p>Here it is with comments:</p>
<pre>
" Turn on syntax highlights. Well it's not an IDE, but makes important things stand out enough
syntax on
" Make tab width 4 spaces
set tabstop=4
" Make indent width also 4
set shiftwidth=4
" Make indent rounded to next full shift width
set shiftround
" Expand tabs to spaces (doesn't mess up file indentation in other editors width different tab settings)
set expandtab
" Indent code blocks automatically (don't need to type a lot of tabs in deep indented lines after a linebreak)
set autoindent
" And make backspace delete smartly (like in any editor. through indents, linestarts and end of lines)
set backspace=indent,eol,start
</pre>
<p>And finally a command to remember to replace all tabs with spaces based on the values above. (Good for formatting text made in another editor)</p>
<pre>
:retab or :retab! to force replacing all tabs which are not surrounded by whitespaces
</pre>
]]></content:encoded>
			<wfw:commentRss>http://zod.hu/2009/03/simple-vimrc.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

