Chris's Wiki :: blog/unix/VimGCommandPraise Commentshttps://utcc.utoronto.ca/~cks/space/blog/unix/VimGCommandPraise?atomcommentsDWiki2019-02-05T17:35:11ZRecent comments in Chris's Wiki :: blog/unix/VimGCommandPraise.By Dan.Astoorian on /blog/unix/VimGCommandPraisetag:CSpace:blog/unix/VimGCommandPraise:21f50adcfec2bae682ef4d1685c079f28c84ab81Dan.Astoorian<div class="wikitext"><p>Note that older versions of vim (e.g., 7) do not appear to allow multiple g/v commands, and produce the error:</p>
<pre>
E147: Cannot do :global recursive
</pre>
<p>on your example.</p>
</div>2019-02-05T17:35:11ZBy Ant on /blog/unix/VimGCommandPraisetag:CSpace:blog/unix/VimGCommandPraise:97f72c5f58b1638c4c71bdec4bdcab0e4bfd87c8Ant<div class="wikitext"><p>:g[lobal] runs a command on matching lines. g is an entirely different set of things depending on what comes after it - mostly "go"-type commands that perform movement, but also many other random things (I guess about 50 at a glance at the help) like wrapping/indenting/rot13ing that must just not have fitted under some other command.</p>
</div>2019-02-05T00:28:08ZBy -dsr- on /blog/unix/VimGCommandPraisetag:CSpace:blog/unix/VimGCommandPraise:ebabbe533a396b8258b69050e298579bb7ea66bf-dsr-<div class="wikitext"><p>You probably already knew:</p>
<p>global/regularexpression/print -- grep.</p>
<p>And of course, grep -v.</p>
</div>2019-02-03T14:41:48Z