Monday, April 4, 2011

Re: Substitute via expression on matched text

Tim Chase, Mon, Apr 04, 2011 at 02:15:12PM -0500:
> To simplify Venu's solution:
>
> :%s/^PP \d\+,\zs\d\+/\=submatch(0)-120/g
>
> -tim

Yeah, that's more along the lines of what I originally tried.

Thanks.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: