On Jan 29, 2011, at 9:55 PM, Colin Beighley wrote: > Hello, > > I am wondering if there is a way, using some (range)s/// command, to take > > 0 : blah blah blah > 1 : blah blah blah > 2 : blah blah blah > . > . > . > 15 : blah blah blah > > and, line by line, delete the number and replace it with itself plus 16.
:%s/^\d\+/\=submatch(0)+16/ See :h sub-replace-\= Israel -- 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
