<?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>My MacOS X&#187; syntax</title>
	<atom:link href="http://www.mymacosx.com/tag/syntax/feed" rel="self" type="application/rss+xml" />
	<link>http://www.mymacosx.com</link>
	<description>Tips and Tricks for the MacOS X</description>
	<lastBuildDate>Fri, 15 Jul 2011 20:10:09 +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>VIM: Making it Work on Leopard</title>
		<link>http://www.mymacosx.com/terminal/vim-vi-colors-settings-snow-leopard.html</link>
		<comments>http://www.mymacosx.com/terminal/vim-vi-colors-settings-snow-leopard.html#comments</comments>
		<pubDate>Wed, 23 Dec 2009 00:23:14 +0000</pubDate>
		<dc:creator>Amaga</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[syntax]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.mymacosx.com/?p=441</guid>
		<description><![CDATA[The default vim is  pretty bland and unimpressive. I would share a few of the settings I have found or plundered from Linux installations in order to make vim more usable. This can go in your .vimrc or in a global location such as /usr/share/vim/vimrc. I would be interested in what other command line and [...]<p><a href="http://www.mymacosx.com/terminal/vim-vi-colors-settings-snow-leopard.html">VIM: Making it Work on Leopard</a> is a post from: <a href="http://www.mymacosx.com">My MacOS X</a></p>


<div style="background-color:#F4F4F4;padding: 5px;border-width:1px; border-style:solid; border-color:#ccc;">
<h3 style="color:#606060;font-size:16px">Related Articles</h3>
<ul>
		<li><a href="http://www.mymacosx.com/terminal/wget-replacement-macos.html" rel="bookmark" style="color:#000;font-size:13px">A wget replacement for MAC OS X</a><!-- (5.1)--></li>
	</ul>
</div>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mymacosx.com/files/2009/12/vim.jpg"><img class="size-medium wp-image-445 alignleft" style="margin-left: 10px;margin-right: 10px" title="vim vi snow leopard" src="http://www.mymacosx.com/files/2009/12/vim-300x171.jpg" alt="vim vi snow leopard" width="300" height="171" /></a>The default <strong>vim</strong> is  pretty bland and unimpressive. I would share a few of the settings I have found or plundered from Linux installations in order to make <strong>vim more usable</strong>.</p>
<p>This can go in your .vimrc or in a global location such as /usr/share/vim/vimrc.<br />
I would be interested in what other command line and vim users do to improve Snow Leopard.</p>
<h3>step 1. Add following code to <strong>/usr/share/vim/vimrc</strong></h3>
<pre class="brush: bash; title: ; notranslate">
set nocompatible &quot; Use Vim defaults
set bs=2 &quot; backspacing over everything in insert mode
set ai &quot; Auto indenting
set history=100 &quot; keep 100 lines of history
set ruler &quot; show the cursor position

set viminfo='20,\&quot;200 &quot; keep a .viminfo file

syntax on &quot; syntax highlighting
set hlsearch &quot; highlight the last searched term

filetype plugin on &quot; use the file type plugins

&quot; When editing a file, always jump to the last cursor position
autocmd BufReadPost *
\ if ! exists(&quot;g:leave_my_cursor_position_alone&quot;) |
\ if line(&quot;'\&quot;&quot;) &gt; 0 &amp;&amp; line (&quot;'\&quot;&quot;) &lt;= line(&quot;$&quot;) |
\ exe &quot;normal g'\&quot;&quot; |
\ endif |
\ endif
</pre>
<h3>step 2. Make alias vi = vim</h3>
<p>open ~/.bash_profile and add following code</p>
<pre class="brush: bash; title: ; notranslate">
alias vi=vim
</pre>
<script src="http://feeds.feedburner.com/~s/MyMacosX?i=http://www.mymacosx.com/terminal/vim-vi-colors-settings-snow-leopard.html" type="text/javascript" charset="utf-8"></script><p><a href="http://www.mymacosx.com/terminal/vim-vi-colors-settings-snow-leopard.html">VIM: Making it Work on Leopard</a> is a post from: <a href="http://www.mymacosx.com">My MacOS X</a></p>


<div style="background-color:#F4F4F4;padding: 5px;border-width:1px; border-style:solid; border-color:#ccc;">
<h3 style="color:#606060;font-size:16px">Related Articles</h3>
<ul>
		<li><a href="http://www.mymacosx.com/terminal/wget-replacement-macos.html" rel="bookmark" style="color:#000;font-size:13px">A wget replacement for MAC OS X</a><!-- (5.1)--></li>
	</ul>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.mymacosx.com/terminal/vim-vi-colors-settings-snow-leopard.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using apc (Feed is rejected)
Page Caching using apc
Database Caching 6/23 queries in 0.008 seconds using apc
Object Caching 592/604 objects using apc

Served from: www.mymacosx.com @ 2012-02-06 05:06:12 -->
