MESSAGE
DATE | 2007-02-10 |
FROM | Ruben Safir
|
SUBJECT | Subject: [NYLXS - HANGOUT] VIM Substitions and \n
|
From owner-hangout-at-mrbrklyn.com Sat Feb 10 12:36:10 2007 Received: from www2.mrbrklyn.com (localhost [127.0.0.1]) by www2.mrbrklyn.com (8.13.1/8.13.1/SuSE Linux 0.7) with ESMTP id l1AHa8Ji003645 for ; Sat, 10 Feb 2007 12:36:10 -0500 Received: (from majordomo-at-localhost) by www2.mrbrklyn.com (8.13.1/8.13.1/Submit) id l1AHa8dG003644 for hangout-outgoings; Sat, 10 Feb 2007 12:36:08 -0500 X-Authentication-Warning: www2.mrbrklyn.com: majordomo set sender to owner-hangout-at-nylxs.com using -f Received: from www2.mrbrklyn.com (localhost [127.0.0.1]) by www2.mrbrklyn.com (8.13.1/8.13.1/SuSE Linux 0.7) with ESMTP id l1AHa5jl003640 for ; Sat, 10 Feb 2007 12:36:07 -0500 Received: (from ruben-at-localhost) by www2.mrbrklyn.com (8.13.1/8.13.1/Submit) id l1AHa5Tf003639 for hangout-at-nylxs.com; Sat, 10 Feb 2007 12:36:05 -0500 Date: Sat, 10 Feb 2007 12:36:05 -0500 From: Ruben Safir To: hangout-at-mrbrklyn.com Subject: [NYLXS - HANGOUT] VIM Substitions and \n Message-ID: <20070210173605.GA3627-at-www2.mrbrklyn.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i Sender: owner-hangout-at-mrbrklyn.com Precedence: bulk X-Keywords: X-UID: 29925 Status: RO X-Status: A Content-Length: 1288 Lines: 28
It seems that the \n has disapeared from the VIM substituion commands. When you run
1,$s/\n/\n/g
You get a single line with -at- chars spred through out it. Instead I needed to do something like
1,$s/$/ /g
and her the EOL char seems to magically be placed on the end of lines in VIM. I've confirmed this with the :help page. This would seem to be a huge break with programming conventions. How can VIM not recognize the universal "\n" char which is in the ASCII set?
Ruben
-- http://www.mrbrklyn.com - Interesting Stuff http://www.nylxs.com - Leadership Development in Free Software
So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world - RI Safir 1998
http://fairuse.nylxs.com DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
"Yeah - I write Free Software...so SUE ME"
"The tremendous problem we face is that we are becoming sharecroppers to our own cultural heritage -- we need the ability to participate in our own society."
"> I'm an engineer. I choose the best tool for the job, politics be damned.< You must be a stupid engineer then, because politcs and technology have been attacted at the hip since the 1st dynasty in Ancient Egypt. I guess you missed that one."
|
|