<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Vim on Miek Gieben</title>
    <link>https://miek.nl/tags/vim/</link>
    <description>Recent content in Vim on Miek Gieben</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <copyright>© Copyright 2007-2024 Miek Gieben</copyright>
    <lastBuildDate>Wed, 08 Oct 2014 22:40:00 +0000</lastBuildDate>
    <atom:link href="https://miek.nl/tags/vim/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Vim live preview (sort of)</title>
      <link>https://miek.nl/2014/october/08/vim-live-preview-sort-of/</link>
      <pubDate>Wed, 08 Oct 2014 22:40:00 +0000</pubDate>
      <guid>https://miek.nl/2014/october/08/vim-live-preview-sort-of/</guid>
      <description>&lt;p&gt;When editing Markdown files or internet drafts in&#xA;&lt;a href=&#34;https://tools.ietf.org/html/rfc7328.html&#34;&gt;Pandoc&amp;rsquo;s Markdown&lt;/a&gt;, I wanted&#xA;to see some live preview window. I looked around a bit, but the solutions presented on the&#xA;Internet, seemed to be insufficient, either to clumsy or don&amp;rsquo;t work at all.&lt;/p&gt;&#xA;&lt;p&gt;My usual routine is: edit -&amp;gt; write -&amp;gt; make -&amp;gt; reload &amp;ldquo;rendered&amp;rdquo; file.&lt;/p&gt;&#xA;&lt;p&gt;Turns out you can automate most of this. Vim has a feature: &lt;code&gt;--servername &amp;lt;id&amp;gt;&lt;/code&gt; which&#xA;allows you to send commands to another vim instance using that &lt;code&gt;&amp;lt;id&amp;gt;&lt;/code&gt;.&#xA;So we need two pieces to make this work.&lt;/p&gt;</description>
    </item>
    <item>
      <title>vim and editing pandoc2rfc</title>
      <link>https://miek.nl/2013/june/16/vim-and-editing-pandoc2rfc/</link>
      <pubDate>Sun, 16 Jun 2013 14:27:00 +0000</pubDate>
      <guid>https://miek.nl/2013/june/16/vim-and-editing-pandoc2rfc/</guid>
      <description>&lt;p&gt;&amp;hellip; or any other document format for that matter.&lt;/p&gt;&#xA;&lt;p&gt;I thought it might be nice to have some sort of split window view in that allows you to edit&#xA;a Pandoc file on the left and see the generated I-D on the right (in vim, with no extra daemons&#xA;and not relying on inotify).&lt;/p&gt;&#xA;&lt;p&gt;Turns out you can do that, though it is not optimal, but it works. The jury is still out if this&#xA;works well enough to actually make it useful.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Vim as MANPAGER</title>
      <link>https://miek.nl/2013/january/19/vim-as-manpager/</link>
      <pubDate>Sat, 19 Jan 2013 18:59:00 +0000</pubDate>
      <guid>https://miek.nl/2013/january/19/vim-as-manpager/</guid>
      <description>&lt;p&gt;I like Vim, so I try to use it at many places. Like in my shell (&lt;code&gt;set -o vi&lt;/code&gt;), and&#xA;when writing and coding.&lt;/p&gt;&#xA;&lt;p&gt;After some Googling I found that Vim can also be used as a MANPAGER. But there is&#xA;one nagging issue. To quit viewing the manual page you have to type &amp;lsquo;:q&amp;rsquo;, which is&#xA;one keystroke more then when using &lt;code&gt;less&lt;/code&gt; as your MANPAGER&amp;hellip; Needless to say: this&#xA;is unacceptable.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Dynamic Syntax Highlighting in Vim</title>
      <link>https://miek.nl/2012/september/20/dynamic-syntax-highlighting-in-vim/</link>
      <pubDate>Thu, 20 Sep 2012 09:57:00 +0000</pubDate>
      <guid>https://miek.nl/2012/september/20/dynamic-syntax-highlighting-in-vim/</guid>
      <description>&lt;p&gt;I&amp;rsquo;m a huge fan of syntax highlighting in my editor Vim. One thing I started to&lt;br&gt;&#xA;miss was that user defined type miss out on the highlighting, because Vim does&lt;br&gt;&#xA;not know about them. Wouldn&amp;rsquo;t it be cool to have some sort of automatic support that&lt;br&gt;&#xA;detect &lt;em&gt;your&lt;/em&gt; types and adds them to the correct highlighting group? I call  &lt;br&gt;&#xA;this &amp;ldquo;dynamic syntax highlighting&amp;rdquo;.&lt;/p&gt;&#xA;&lt;p&gt;As a proof-of-concept I took the &lt;a href=&#34;http://majutsushi.github.com/tagbar/&#34;&gt;tagbar                                     &lt;br&gt;&#xA;plugin&lt;/a&gt;, and modified it a little to take&#xA;advantage of the language detection (specifically the types). The modified code&#xA;can be found &lt;a href=&#34;https://github.com/miekg/tagbar&#34;&gt;in my fork on github&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
