increment list

2013-05-09 Thread shawn wilson
Quite often I've got a list, either: 1 - do this first 2 - do this next 3 - go home or /^ ([0-3][0-9])- # 0 Day ([A-Z][a-z][a-z])- # 1 Month ([0-9]{4})# 2 Year /x; And I alter something and need to change the list. I can make a macro where I 'j0cw' or 'f#wcw' but then how do I make the incr

Re: increment list

2013-05-09 Thread Charles Campbell
shawn wilson wrote: Quite often I've got a list, either: 1 - do this first 2 - do this next 3 - go home or /^ ([0-3][0-9])- # 0 Day ([A-Z][a-z][a-z])- # 1 Month ([0-9]{4})# 2 Year /x; And I alter something and need to change the list. I can make a macro where I 'j0cw' or 'f#wcw' but then

Re: increment list

2013-05-09 Thread Paul Isambert
> Quite often I've got a list, either: > > 1 - do this first > 2 - do this next > 3 - go home > > or > /^ > ([0-3][0-9])- # 0 Day > ([A-Z][a-z][a-z])- # 1 Month > ([0-9]{4})# 2 Year > /x; > > And I alter something and need to change the list. I can make a macro > where I 'j0cw' or 'f#wcw' b

Re: increment list

2013-05-09 Thread shawn wilson
Thanks y'all. I'm not sure which I like better. (probably the simple function though) -- -- 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 --- You received t