I want to increase the number in this format "/ddd" by one but also keep
"/".
But the following command doesn't work:
$s/\/\([1-9]\+\)/\/\=submatch(1)-1)/g
Can anyone give a tip?
Thanks!
--
View this message in context: http://vim.1045645.n5.nabble.com/about-submatch-in-VIM-tp4273737p4273737.html
Sent from the Vim - General mailing list archive at Nabble.com.
--
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:
Post a Comment