Re: OT: vim question

From: Radoulov, Dimitre <cichomitiko_at_gmail.com>
Date: Tue, 15 Feb 2011 22:57:27 +0100
Message-ID: <4D5AF6C7.4010602_at_gmail.com>



On 02/15/2011 10:30 PM, Taylor, Chris David wrote:

[...]

> I want this:
>
> :1,$s/[0-9]/^M/ --- but this replaces whatever matches in 0-9 with a
> carriage return -- I actually want it to not replace but insert a
> carriage return after finding the number string and keep the number.
>

Untested:

:%s/\([0-9]\)/\1^M/

Regards
Dimitre

--
http://www.freelists.org/webpage/oracle-l
Received on Tue Feb 15 2011 - 15:57:27 CST

Original text of this message