On 13/05/2014 2:08 PM, Michael Doob wrote:
Date: Mon, 12 May 2014 15:42:28 -0500 From: John Lange john@johnlange.ca To: "Roundtable, MUUG" Roundtable@muug.mb.ca Subject: [RndTbl] The Oldest Rivalry in Computing
This mailing list is the only place I can think of where I could possibly share this article:
"Emacs and Vi have been battling for text-editor supremacy among programmers for 40 years."
http://www.slate.com/articles/technology/bitwise/2014/05/oldest_software_riv...
John
...
Note that the author's vi example to put quotes around lines:
%s/(^|$)/"/g
only works if ^ .ne. $, that is, the line is nonempty.
(Sorry, mathematicians just love to point out things like this).
Maybe this would work better...
%s/.*/"&"/
It's a lot briefer, and IMHO, more obvious.
Computer Scientists (and old-time vi aficionados) love to optimize things like this... :)