<?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>We Heart Code &#187; vim</title>
	<atom:link href="http://www.weheartcode.com/category/vim/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.weheartcode.com</link>
	<description>A discourse on programming</description>
	<lastBuildDate>Sun, 17 Jan 2010 02:16:44 +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>One Time Case Insensitive Vim Search</title>
		<link>http://www.weheartcode.com/2007/06/29/one-time-case-insensitive-vim-search/</link>
		<comments>http://www.weheartcode.com/2007/06/29/one-time-case-insensitive-vim-search/#comments</comments>
		<pubDate>Fri, 29 Jun 2007 14:04:59 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[tip]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.weheartcode.com/2007/06/29/one-time-case-insensitive-vim-search/</guid>
		<description><![CDATA[Everyone knows you can type
:set ic to ignore case in vim, however sometimes you want to do a case insensitive search on a &#8216;case by case&#8217; basis, no pun intended.
to do that you&#8217;d type
/\csearchstring
That way you don&#8217;t have to go insenstive for your whole session.
Bookmark to:
]]></description>
			<content:encoded><![CDATA[<p>Everyone knows you can type</p>
<p>:set ic to ignore case in vim, however sometimes you want to do a case insensitive search on a &#8216;case by case&#8217; basis, no pun intended.</p>
<p>to do that you&#8217;d type</p>
<p>/<strong>\c</strong>searchstring</p>
<p>That way you don&#8217;t have to go insenstive for your whole session.</p>
<!-- Social Bookmarks BEGIN --><div class="social_bookmark"><em>Bookmark to:</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.weheartcode.com/2007/06/29/one-time-case-insensitive-vim-search/&amp;title=One+Time+Case+Insensitive+Vim+Search" title="Add 'One Time Case Insensitive Vim Search' to Del.icio.us"><img src="http://www.weheartcode.com/wp-content/plugins/social_bookmarks/delicious.png" title="Add 'One Time Case Insensitive Vim Search' to Del.icio.us" alt="Add 'One Time Case Insensitive Vim Search' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.weheartcode.com/2007/06/29/one-time-case-insensitive-vim-search/&amp;title=One+Time+Case+Insensitive+Vim+Search" title="Add 'One Time Case Insensitive Vim Search' to digg"><img src="http://www.weheartcode.com/wp-content/plugins/social_bookmarks/digg.png" title="Add 'One Time Case Insensitive Vim Search' to digg" alt="Add 'One Time Case Insensitive Vim Search' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://furl.net/storeIt.jsp?t=One+Time+Case+Insensitive+Vim+Search&amp;u=http://www.weheartcode.com/2007/06/29/one-time-case-insensitive-vim-search/" title="Add 'One Time Case Insensitive Vim Search' to FURL"><img src="http://www.weheartcode.com/wp-content/plugins/social_bookmarks/furl.png" title="Add 'One Time Case Insensitive Vim Search' to FURL" alt="Add 'One Time Case Insensitive Vim Search' to FURL" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://www.weheartcode.com/2007/06/29/one-time-case-insensitive-vim-search/&amp;title=One+Time+Case+Insensitive+Vim+Search" title="Add 'One Time Case Insensitive Vim Search' to reddit"><img src="http://www.weheartcode.com/wp-content/plugins/social_bookmarks/reddit.png" title="Add 'One Time Case Insensitive Vim Search' to reddit" alt="Add 'One Time Case Insensitive Vim Search' to reddit" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://www.weheartcode.com/2007/06/29/one-time-case-insensitive-vim-search/" title="Add 'One Time Case Insensitive Vim Search' to Technorati"><img src="http://www.weheartcode.com/wp-content/plugins/social_bookmarks/technorati.png" title="Add 'One Time Case Insensitive Vim Search' to Technorati" alt="Add 'One Time Case Insensitive Vim Search' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://www.weheartcode.com/2007/06/29/one-time-case-insensitive-vim-search/&amp;title=One+Time+Case+Insensitive+Vim+Search" title="Add 'One Time Case Insensitive Vim Search' to Google Bookmarks"><img src="http://www.weheartcode.com/wp-content/plugins/social_bookmarks/google.png" title="Add 'One Time Case Insensitive Vim Search' to Google Bookmarks" alt="Add 'One Time Case Insensitive Vim Search' to Google Bookmarks" /></a></div>
<!-- Social Bookmarks END -->]]></content:encoded>
			<wfw:commentRss>http://www.weheartcode.com/2007/06/29/one-time-case-insensitive-vim-search/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Creating comma delimited lists with vim</title>
		<link>http://www.weheartcode.com/2006/10/06/creating-comma-delimited-lists-with-vim/</link>
		<comments>http://www.weheartcode.com/2006/10/06/creating-comma-delimited-lists-with-vim/#comments</comments>
		<pubDate>Fri, 06 Oct 2006 23:29:38 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[tip]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.weheartcode.com/?p=4</guid>
		<description><![CDATA[Sometimes you just want a comma delimited list. But all life has handed you is a newline delimited list. Lucky for us, God made vim.

Paste/Open your file in vim.
Enter command mode (press escape) and enter this command:
:1,$s/\n/,/
That tells vim starting from line 1 to the end of the file replace newlines with commas.
Now we&#8217;re golden, [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes you just want a comma delimited list. But all life has handed you is a newline delimited list. Lucky for us, God made vim.</p>
<p><span id="more-4"></span></p>
<p>Paste/Open your file in vim.</p>
<p>Enter command mode (<em>press escape</em>) and enter this command:</p>
<blockquote><p>:1,$s/\n/,/</p></blockquote>
<p>That tells vim starting from line 1 to the end of the file replace newlines with commas.</p>
<p>Now we&#8217;re golden, you can paste it into an IN clause in your query, or change the replacement to <em>&#8220;,&#8221;</em> if you want to make a string array for some quick test data without typing like a sucker. And yes vim is <a href="http://www.vim.org/download.php">available for windows</a>.</p>
<!-- Social Bookmarks BEGIN --><div class="social_bookmark"><em>Bookmark to:</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.weheartcode.com/2006/10/06/creating-comma-delimited-lists-with-vim/&amp;title=Creating+comma+delimited+lists+with+vim" title="Add 'Creating comma delimited lists with vim' to Del.icio.us"><img src="http://www.weheartcode.com/wp-content/plugins/social_bookmarks/delicious.png" title="Add 'Creating comma delimited lists with vim' to Del.icio.us" alt="Add 'Creating comma delimited lists with vim' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.weheartcode.com/2006/10/06/creating-comma-delimited-lists-with-vim/&amp;title=Creating+comma+delimited+lists+with+vim" title="Add 'Creating comma delimited lists with vim' to digg"><img src="http://www.weheartcode.com/wp-content/plugins/social_bookmarks/digg.png" title="Add 'Creating comma delimited lists with vim' to digg" alt="Add 'Creating comma delimited lists with vim' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://furl.net/storeIt.jsp?t=Creating+comma+delimited+lists+with+vim&amp;u=http://www.weheartcode.com/2006/10/06/creating-comma-delimited-lists-with-vim/" title="Add 'Creating comma delimited lists with vim' to FURL"><img src="http://www.weheartcode.com/wp-content/plugins/social_bookmarks/furl.png" title="Add 'Creating comma delimited lists with vim' to FURL" alt="Add 'Creating comma delimited lists with vim' to FURL" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://www.weheartcode.com/2006/10/06/creating-comma-delimited-lists-with-vim/&amp;title=Creating+comma+delimited+lists+with+vim" title="Add 'Creating comma delimited lists with vim' to reddit"><img src="http://www.weheartcode.com/wp-content/plugins/social_bookmarks/reddit.png" title="Add 'Creating comma delimited lists with vim' to reddit" alt="Add 'Creating comma delimited lists with vim' to reddit" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://www.weheartcode.com/2006/10/06/creating-comma-delimited-lists-with-vim/" title="Add 'Creating comma delimited lists with vim' to Technorati"><img src="http://www.weheartcode.com/wp-content/plugins/social_bookmarks/technorati.png" title="Add 'Creating comma delimited lists with vim' to Technorati" alt="Add 'Creating comma delimited lists with vim' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://www.weheartcode.com/2006/10/06/creating-comma-delimited-lists-with-vim/&amp;title=Creating+comma+delimited+lists+with+vim" title="Add 'Creating comma delimited lists with vim' to Google Bookmarks"><img src="http://www.weheartcode.com/wp-content/plugins/social_bookmarks/google.png" title="Add 'Creating comma delimited lists with vim' to Google Bookmarks" alt="Add 'Creating comma delimited lists with vim' to Google Bookmarks" /></a></div>
<!-- Social Bookmarks END -->]]></content:encoded>
			<wfw:commentRss>http://www.weheartcode.com/2006/10/06/creating-comma-delimited-lists-with-vim/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
