<?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>All The Info &#187; Vim</title>
	<atom:link href="http://blog.alltheinfo.org/category/tech/vim/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.alltheinfo.org</link>
	<description>Everything worth knowing</description>
	<lastBuildDate>Tue, 07 Feb 2012 16:19:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Removing smartquotes from text in Linux</title>
		<link>http://blog.alltheinfo.org/removing-smartquotes-from-text-in-linux/612/</link>
		<comments>http://blog.alltheinfo.org/removing-smartquotes-from-text-in-linux/612/#comments</comments>
		<pubDate>Mon, 11 May 2009 22:34:17 +0000</pubDate>
		<dc:creator>Bob Weber</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Vim]]></category>
		<category><![CDATA[bad characters]]></category>
		<category><![CDATA[smartquotes]]></category>
		<category><![CDATA[vi]]></category>

		<guid isPermaLink="false">http://blog.alltheinfo.org/?p=612</guid>
		<description><![CDATA[When converting documents from customer word format to html it seems inevitable that there will be extra characters provided by Microsoft Word. Unfortunately this expanded character set, which includes Smart Quotes, is not supported by many web browsers and email clients, so we have to go through and clean all of this out of our [...]]]></description>
			<content:encoded><![CDATA[<p>When converting documents from customer word format to html it seems inevitable that there will be extra characters provided by Microsoft Word.  Unfortunately this expanded character set, which includes Smart Quotes, is not supported by many web browsers and email clients, so we have to go through and clean all of this out of our html files.</p>
<p>I normally use vim to edit all html files, and I have finally found a reliable method of locating these &#8216;bad characters&#8217; in vim.   </p>
<p>The process consists of two steps:</p>
<p>1) Make sure the &#8216;file encoding&#8217; is 8-bit</p>
<p>        :setlocal fenc=latin1</p>
<p>2) Use the 8g8 command in Normal mode (see &#8220;help 8g8&#8243;) </p>
<p>This process allows the bad characters to be identified and converted to utf-8 characters that can be displayed in all web browsers and email clients.  If anyone out there has a better/easier way of doing this, please let me know.</p>
<img src="http://blog.alltheinfo.org/?ak_action=api_record_view&id=612&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.alltheinfo.org/removing-smartquotes-from-text-in-linux/612/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vim &#8211; Multiple Files</title>
		<link>http://blog.alltheinfo.org/vim-multiple-files/449/</link>
		<comments>http://blog.alltheinfo.org/vim-multiple-files/449/#comments</comments>
		<pubDate>Wed, 09 Apr 2008 19:06:33 +0000</pubDate>
		<dc:creator>Bob Weber</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://blog.alltheinfo.org/vim-multiple-files/449/</guid>
		<description><![CDATA[One of the very cool things about Vim is the ease of editing multiple files. I like to use this capability when working on a website project and need to update lots of html files with something common, like a new link. Sure, sometimes there are other methods of doing this, like a simple command [...]]]></description>
			<content:encoded><![CDATA[<p>One of the very cool things about Vim is the ease of editing multiple files.  I like to use this capability when working on a website project and need to update lots of html files with something common, like a new link.  Sure, sometimes there are other methods of doing this, like a simple <a href="http://blog.alltheinfo.org/recursive-search-and-replace/295/">command line search and replace perl script </a>.  Sometimes though, the regular expression is just too much of a pain to write, and it&#8217;s just easier, and faster, to edit all of the files.</p>
<p>The difficulty is, without menus, it can be tough to remember the syntax to move between files.  In case you, like me, can&#8217;t remember how to edit multiple files, here is a little tutorial.</p>
<ol>
<li>Open multiple files with vim <em>vim *.html</em></li>
<li>Edit the first file</li>
<li>Type :bn to move to the next file in the buffer</li>
<li>Repeat</li>
</ol>
<p>If you need additional command information, check out this <a href="http://rayninfo.co.uk/vimtips.html">great list of vim tips</a>.</p>
<p><a href="http://www.amazon.com/gp/product/059652983X?ie=UTF8&#038;tag=alltheinfo-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=059652983X">Learning the vi and Vim Editors</a><img src="http://www.assoc-amazon.com/e/ir?t=alltheinfo-20&#038;l=as2&#038;o=1&#038;a=059652983X" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
<img src="http://blog.alltheinfo.org/?ak_action=api_record_view&id=449&type=feed" alt="" /><p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-1075790833332307";
/* 234x60, created 9/19/09 */
google_ad_slot = "2750878150";
google_ad_width = 234;
google_ad_height = 60;
google_color_border = "0E270D";
google_color_bg = "0E270D";
google_color_link = "19790e";
google_color_url = "19790e";
google_color_text = "19790e";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>]]></content:encoded>
			<wfw:commentRss>http://blog.alltheinfo.org/vim-multiple-files/449/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 2/17 queries in 0.008 seconds using disk: basic
Object Caching 690/716 objects using disk: basic

Served from: blog.alltheinfo.org @ 2012-02-10 23:46:38 -->
