Re: OT: vim question
- From: "Radoulov, Dimitre" <cichomitiko@xxxxxxxxx>
- To: ChrisDavid.Taylor@xxxxxxxxxxxxxxx
- Date: Tue, 15 Feb 2011 22:57:27 +0100
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
- References:
- OT: vim question
- From: Taylor, Chris David
- OT: vim question
Other related posts:
- » OT: vim question - Taylor, Chris David
- » Re: OT: vim question - Radoulov, Dimitre
- » Re: OT: vim question - William Robertson
- » RE: OT: vim question - Taylor, Chris David