<?xml version='1.0' encoding='utf-8' ?>

<rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/' xmlns:atom10='http://www.w3.org/2005/Atom'>
<channel>
  <title>shadowspar</title>
  <link>https://shadowspar.dreamwidth.org/</link>
  <description>shadowspar - Dreamwidth Studios</description>
  <lastBuildDate>Fri, 11 Nov 2011 19:23:47 GMT</lastBuildDate>
  <generator>LiveJournal / Dreamwidth Studios</generator>
  <lj:journal>shadowspar</lj:journal>
  <lj:journaltype>personal</lj:journaltype>
  <image>
    <url>https://v2.dreamwidth.org/7043875/446148</url>
    <title>shadowspar</title>
    <link>https://shadowspar.dreamwidth.org/</link>
    <width>100</width>
    <height>100</height>
  </image>

<item>
  <guid isPermaLink='true'>https://shadowspar.dreamwidth.org/64730.html</guid>
  <pubDate>Fri, 11 Nov 2011 19:23:47 GMT</pubDate>
  <title>vim digraphs: ♥</title>
  <link>https://shadowspar.dreamwidth.org/64730.html</link>
  <description>&lt;p&gt;
First thing.  For those who use vim but might not have known about it:
vim has a feature called &lt;em&gt;digraphs&lt;/em&gt; which gives you a way to
enter letters with diacritics (eg ä), symbols (eg ✓), and other 
characters that aren&apos;t on your keyboard.  It does have its 
idiosyncracies, but it&apos;s fairly reasonable once you start to 
toy with it a bit. 
&lt;/p&gt;
&lt;p&gt;
How it works: first, enter the &lt;em&gt;compose key&lt;/em&gt;, which by default
is Control-K.  Then enter the two characters of the digraph, and you&apos;ll
get the single character that&apos;s defined in the digraphs table for that 
particular combination.
&lt;/p&gt;
&lt;p&gt;
So, for instance:
&lt;/p&gt;


&lt;ul&gt;
    &lt;li&gt;&lt;em&gt;Ctrl-K&lt;/em&gt; + &lt;strong&gt;o&lt;/strong&gt;  + &lt;strong&gt;-&lt;/strong&gt; ⇒ &lt;strong&gt;ō&lt;/strong&gt; &lt;/li&gt;
    &lt;li&gt;&lt;em&gt;Ctrl-K&lt;/em&gt; + &lt;strong&gt;e&lt;/strong&gt;  + &lt;strong&gt;:&lt;/strong&gt; ⇒ &lt;strong&gt;ë&lt;/strong&gt; &lt;/li&gt;
    &lt;li&gt;&lt;em&gt;Ctrl-K&lt;/em&gt; + &lt;strong&gt;c&lt;/strong&gt;  + &lt;strong&gt;,&lt;/strong&gt; ⇒ &lt;strong&gt;ç&lt;/strong&gt; &lt;/li&gt;
    &lt;li&gt;&lt;em&gt;Ctrl-K&lt;/em&gt; + &lt;strong&gt;o&lt;/strong&gt;  + &lt;strong&gt;C&lt;/strong&gt; ⇒ &lt;strong&gt;℃&lt;/strong&gt; &lt;/li&gt;
    &lt;li&gt;&lt;em&gt;Ctrl-K&lt;/em&gt; + &lt;strong&gt;P&lt;/strong&gt;  + &lt;strong&gt;d&lt;/strong&gt; ⇒ &lt;strong&gt;£&lt;/strong&gt; &lt;/li&gt;
    &lt;li&gt;&lt;em&gt;Ctrl-K&lt;/em&gt; + &lt;strong&gt;1&lt;/strong&gt;  + &lt;strong&gt;2&lt;/strong&gt; ⇒ &lt;strong&gt;½&lt;/strong&gt; &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;
The command &lt;tt&gt;:digraphs&lt;/tt&gt; will show you everything in the
digraphs table.
&lt;/p&gt;

&lt;p&gt;
Last thing and the point of all that preparatory context above:
there is a terrible problem with the set of digraphs as it ships with
vim.  &lt;em&gt;Clearly&lt;/em&gt; the sequence 
&lt;strong&gt;&amp;lt;&lt;/strong&gt; + &lt;strong&gt;3&lt;/strong&gt; should compose to the
character ♥, but it doesn&apos;t by default.  To remedy this horrible 
shortcoming, add the line  
&lt;/p&gt;

&lt;p&gt;
&lt;tt&gt;digraph &amp;lt;3 9829&lt;tt&gt;
&lt;/tt&gt;&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;
to your vim config file.  (9829 is the unicode decimal identifier for
the character ♥.)
&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=shadowspar&amp;ditemid=64730&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://shadowspar.dreamwidth.org/64730.html</comments>
  <category>i18n</category>
  <category>vim</category>
  <category>geek</category>
  <lj:mood>okay</lj:mood>
  <lj:security>public</lj:security>
  <lj:reply-count>15</lj:reply-count>
</item>
</channel>
</rss>
