<?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>Patrick Jones, The Red Cyclone &#187; unicode</title>
	<atom:link href="http://patrickmjones.com/blog/tags/unicode/feed/" rel="self" type="application/rss+xml" />
	<link>http://patrickmjones.com/blog</link>
	<description>Yeah, whatever...</description>
	<lastBuildDate>Mon, 16 Jan 2012 00:38:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Unicode in VIM</title>
		<link>http://patrickmjones.com/blog/2009/12/08/unicode-in-vim/</link>
		<comments>http://patrickmjones.com/blog/2009/12/08/unicode-in-vim/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 05:21:11 +0000</pubDate>
		<dc:creator>Patrick</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[unicode]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://patrickmjones.com/blog/?p=145</guid>
		<description><![CDATA[I recently needed to work with Unicode and multi-byte characters in my code.  The following configuration worked great for me.  Most of it appears in the VIM wiki, and then I set the guifont properties. if has&#40;&#34;multi_byte&#34;&#41; if &#38;termencoding == &#34;&#34; let &#38;termencoding = &#38;encoding endif set encoding=utf-8 setglobal fileencoding=utf-8 bomb set fileencodings=ucs-bom,utf-8,latin1 set guifont=Lucida\ [...]]]></description>
			<content:encoded><![CDATA[<p>I recently needed to work with Unicode and multi-byte characters in my code.  The following configuration worked great for me.  Most of it appears in the VIM wiki, and then I set the guifont properties.</p>

<div class="wp_syntax"><div class="code"><pre class="vim" style="font-family:monospace;"><span style="color: #804040;">if</span> <span style="color: #25BB4D;">has</span><span style="color: #000000;">&#40;</span><span style="color: #C5A22D;">&quot;multi_byte&quot;</span><span style="color: #000000;">&#41;</span>
  <span style="color: #804040;">if</span> <span style="color: #000000;">&amp;</span>termencoding == <span style="color: #C5A22D;">&quot;&quot;</span>
    <span style="color: #804040;">let</span> <span style="color: #000000;">&amp;</span>termencoding = <span style="color: #000000;">&amp;</span>encoding
  <span style="color: #804040;">endif</span>
  <span style="color: #804040;">set</span> <span style="color: #668080;">encoding</span>=utf<span style="color: #000000;">-</span><span style="color: #000000; font-weight:bold;">8</span>
  setglobal <span style="color: #668080;">fileencoding</span>=utf<span style="color: #000000;">-</span><span style="color: #000000; font-weight:bold;">8</span> <span style="color: #668080;">bomb</span>
  <span style="color: #804040;">set</span> <span style="color: #668080;">fileencodings</span>=ucs<span style="color: #000000;">-</span>bom,utf<span style="color: #000000;">-</span><span style="color: #000000; font-weight:bold;">8</span>,latin1
  <span style="color: #804040;">set</span> <span style="color: #668080;">guifont</span>=Lucida\ Console<span style="color: #000000;">:</span>h11
  <span style="color: #804040;">set</span> <span style="color: #668080;">guifontwide</span>=NSimSun<span style="color: #000000;">:</span>h14
<span style="color: #804040;">endif</span></pre></div></div>

<p>You may want to play around with the fonts and sizes to suit your needs.  Remember to escape the spaces in font names.</p>
<p>Read also: <a rel="external" href="http://vim.wikia.com/wiki/Working_with_Unicode">http://vim.wikia.com/wiki/Working_with_Unicode</a></p>
]]></content:encoded>
			<wfw:commentRss>http://patrickmjones.com/blog/2009/12/08/unicode-in-vim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

