<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="http://tech.saigonist.com/taxonomy/term/16/all" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>vim</title>
    <link>http://tech.saigonist.com/taxonomy/term/16/all</link>
    <description></description>
    <language>en</language>
          <item>
    <title>List of all Vim script events</title>
    <link>http://tech.saigonist.com/b/code/list-all-vim-script-events</link>
    <description>&lt;span class=&quot;submitted-by&quot;&gt;April 5, 2016&lt;/span&gt;&lt;div class=&quot;field_tags&quot;&gt;&lt;span class=&quot;label label-info&quot;&gt;&lt;a href=&quot;/tags/vim&quot;&gt;vim&lt;/a&gt;&lt;/span&gt; &lt;span class=&quot;label label-info&quot;&gt;&lt;a href=&quot;/tags/vimscript&quot;&gt;vimscript&lt;/a&gt;&lt;/span&gt; &lt;/div&gt;&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;p&gt;To get an idea of what Vimscript is capable of, take a look at all the events it can react to because basically your script won&#039;t do much except when something happens (usually caused by the user) and your script reacts. For example, do something when opening a file, or highlighting a word, or hitting some trigger key. You don&#039;t want your script to just be running constantly in a loop in the background, and you also don&#039;t want it to stall Vim during its handling of events, including at startup. If you go through Vim&#039;s built-in documentation you can find the list of events but I&#039;ve created...&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
     <pubDate>Tue, 05 Apr 2016 10:40:00 +0000</pubDate>
 <dc:creator>tomo</dc:creator>
 <guid isPermaLink="false">87 at http://tech.saigonist.com</guid>
  </item>
  <item>
    <title>Vim is grep, and more vim search tips</title>
    <link>http://tech.saigonist.com/b/code/vim-grep-and-more-vim-search-tips</link>
    <description>&lt;span class=&quot;submitted-by&quot;&gt;March 15, 2016&lt;/span&gt;&lt;div class=&quot;field_tags&quot;&gt;&lt;span class=&quot;label label-info&quot;&gt;&lt;a href=&quot;/tags/vim&quot;&gt;vim&lt;/a&gt;&lt;/span&gt; &lt;span class=&quot;label label-info&quot;&gt;&lt;a href=&quot;/tags/vi&quot;&gt;vi&lt;/a&gt;&lt;/span&gt; &lt;span class=&quot;label label-info&quot;&gt;&lt;a href=&quot;/tags/regex&quot;&gt;regex&lt;/a&gt;&lt;/span&gt; &lt;/div&gt;&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;p&gt;Something I learned the other day blew my mind even after years of using VI/vim. Because I&#039;d also been using grep for years.&lt;/p&gt;

&lt;h2&gt;The name &#039;grep&#039; comes from the vi command &lt;code&gt;g/re/p&lt;/code&gt;&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;g&lt;/code&gt; in ex-mode of vi means &#039;global&#039;, so any &lt;code&gt;:g&lt;/code&gt; command will apply to all the text in the current buffer.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;p&lt;/code&gt; after &#039;re&#039; means print.&lt;/p&gt;

&lt;p&gt;&#039;re&#039; in &lt;code&gt;g/re/p&lt;/code&gt; actually just means a regular expression should go there (a vim regular expression, which is different fromregex in PHP or even a re string in grep - this is where vim magic modes...&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
     <pubDate>Tue, 15 Mar 2016 05:04:27 +0000</pubDate>
 <dc:creator>tomo</dc:creator>
 <guid isPermaLink="false">66 at http://tech.saigonist.com</guid>
  </item>
  <item>
    <title>Vim windows and window-splitting</title>
    <link>http://tech.saigonist.com/b/code/vim-windows-and-window-splitting</link>
    <description>&lt;span class=&quot;submitted-by&quot;&gt;March 1, 2016&lt;/span&gt;&lt;div class=&quot;field_tags&quot;&gt;&lt;span class=&quot;label label-info&quot;&gt;&lt;a href=&quot;/tags/vim&quot;&gt;vim&lt;/a&gt;&lt;/span&gt; &lt;/div&gt;&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;p&gt;&lt;img src=&quot;http://tech.saigonist.com/sites/default/files/styles/panopoly_image_original/public/screen_shot_2016-03-01_at_2.11.08_pm.png&quot; width=&quot;95%&quot; /&gt;&lt;/p&gt;

&lt;p&gt;A lifechanging feature of Vim for me was the window-splitting feature. In MacVim, you can even access a tiny slice of this through the Apple menu (File -&amp;gt; Split-Open). So you can view multiple files in other &quot;windows&quot; in the same Vim session. In fact, you can view the same file at different lines in different windows. And you can split windows both vertically (side by side) and horizontally (default). You can split already split...&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
     <pubDate>Tue, 01 Mar 2016 07:20:00 +0000</pubDate>
 <dc:creator>tomo</dc:creator>
 <guid isPermaLink="false">37 at http://tech.saigonist.com</guid>
  </item>
  <item>
    <title>Quickly start using Vim (and MacVim)</title>
    <link>http://tech.saigonist.com/b/code/quickly-start-using-vim-and-macvim</link>
    <description>&lt;span class=&quot;submitted-by&quot;&gt;November 7, 2015&lt;/span&gt;&lt;div class=&quot;field_tags&quot;&gt;&lt;span class=&quot;label label-info&quot;&gt;&lt;a href=&quot;/tags/vim&quot;&gt;vim&lt;/a&gt;&lt;/span&gt; &lt;span class=&quot;label label-info&quot;&gt;&lt;a href=&quot;/tags/editor&quot;&gt;editor&lt;/a&gt;&lt;/span&gt; &lt;/div&gt;&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;div&gt;
&lt;p&gt;You&#039;ve decided learning vi/vim is a good idea. You&#039;ve heard it can be intimidating at first. But you know often times tools with steep learning curves are worth learning. You probably already have vim installed but if you&#039;re on Mac you should get MacVim as well: &lt;a href=&quot;https://github.com/macvim-dev/macvim&quot;&gt;https://github.com/macvim-dev/macvim&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Start vim (I mean just type &#039;vim&#039; or &#039;vim &amp;lt;filename&amp;gt;&#039; in a terminal. &lt;/p&gt;
&lt;p&gt;1. Don&#039;t start typing yet. Press &#039;i&#039; to go into insert mode where you can just type and text appears like any normal text editor. Just stay in this&lt;/p&gt;...&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
     <pubDate>Sat, 07 Nov 2015 10:41:00 +0000</pubDate>
 <dc:creator>tomo</dc:creator>
 <guid isPermaLink="false">10 at http://tech.saigonist.com</guid>
  </item>
  </channel>
</rss>
