Just for the sake of records, the very nice commands suggested here
don't
work well if the numbers have leading zeroes. For example, using

 :'<,'>s/\%V\d\+/\=submatch(0)+5

in a table like:

0101
0102
0103
0104

provides

70
71
72
73
74

A simple solution is to add "1" to the first column, so eliminating
the leading zeroes,
and then removing them later. Maybe there is some way to do it.

Leandro.


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to