<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">&gt; Computer Scientists (and old-time vi aficionados) love to optimize things like this... :)<br> <br>Even if it doesn&#39;t produce more obfuscated code?  :)<br>
 <br></div><div class="gmail_extra"><div><div dir="ltr"><span style="font-family:verdana,sans-serif"><font>Hartmut Sager<br></font></span><br></div></div>
<br><div class="gmail_quote">On 13 May 2014 14:39, Gilbert E. Detillieux <span dir="ltr">&lt;<a href="mailto:gedetil@cs.umanitoba.ca" target="_blank">gedetil@cs.umanitoba.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 13/05/2014 2:08 PM, Michael Doob wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Date: Mon, 12 May 2014 15:42:28 -0500<br>
From: John Lange &lt;<a href="mailto:john@johnlange.ca" target="_blank">john@johnlange.ca</a>&gt;<br>
To: &quot;Roundtable, MUUG&quot; &lt;<a href="mailto:Roundtable@muug.mb.ca" target="_blank">Roundtable@muug.mb.ca</a>&gt;<br>
Subject: [RndTbl] The Oldest Rivalry in Computing<br>
<br>
This mailing list is the only place I can think of where I could possibly<br>
share this article:<br>
<br>
&quot;Emacs and Vi have been battling for text-editor supremacy among<br>
programmers for 40 years.&quot;<br>
<br>
<a href="http://www.slate.com/articles/technology/bitwise/2014/05/oldest_software_rivalry_emacs_and_vi_two_text_editors_used_by_programmers.html" target="_blank">http://www.slate.com/articles/<u></u>technology/bitwise/2014/05/<u></u>oldest_software_rivalry_emacs_<u></u>and_vi_two_text_editors_used_<u></u>by_programmers.html</a><br>

<br>
<br>
<br>
John<br>
</blockquote></blockquote>
...<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Note that the author&#39;s vi example to put quotes around lines:<br>
<br>
%s/\(^\|$\)/\&quot;/g<br>
<br>
only works if ^ .ne. $, that is, the line is nonempty.<br>
<br>
(Sorry, mathematicians just love to point out things like this).<br>
</blockquote>
<br>
Maybe this would work better...<br>
<br>
%s/.*/&quot;&amp;&quot;/<br>
<br>
It&#39;s a lot briefer, and IMHO, more obvious.<br>
<br>
Computer Scientists (and old-time vi aficionados) love to optimize things like this... :)<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Gilbert E. Detillieux           E-mail: &lt;<a href="mailto:gedetil@muug.mb.ca" target="_blank">gedetil@muug.mb.ca</a>&gt;<br>
Manitoba UNIX User Group        Web:    <a href="http://www.muug.mb.ca/" target="_blank">http://www.muug.mb.ca/</a><br>
PO Box 130 St-Boniface          Phone:  <a href="tel:%28204%29474-8161" value="+12044748161" target="_blank">(204)474-8161</a><br>
Winnipeg MB CANADA  R2H 3B4     Fax:    <a href="tel:%28204%29474-7609" value="+12044747609" target="_blank">(204)474-7609</a><br>
______________________________<u></u>_________________<br>
Roundtable mailing list<br>
<a href="mailto:Roundtable@muug.mb.ca" target="_blank">Roundtable@muug.mb.ca</a><br>
<a href="http://www.muug.mb.ca/mailman/listinfo/roundtable" target="_blank">http://www.muug.mb.ca/mailman/<u></u>listinfo/roundtable</a><br>
</font></span></blockquote></div><br></div></div>