<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="http://tech.saigonist.com/taxonomy/term/109/all" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>vi</title>
    <link>http://tech.saigonist.com/taxonomy/term/109/all</link>
    <description></description>
    <language>en</language>
          <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>
  </channel>
</rss>
