Re: Delete, add 16, and insert

2011-01-30 Thread Tim Chase
On 01/30/11 14:26, Adam wrote: What you want is to enter the ^A literally which can be done by prefixing it with control+V: Oh sorry yeah that's what I did do (^V^A) I guess I left it out. When you do that it appears that it's only incrementing by 1 though instead of the prefix that you give i

Re: Delete, add 16, and insert

2011-01-30 Thread Adam
> > Then you may have some plugin remapping ? Try doing >execute "normal! 16\" > and see whether it helps. There is a known (and fixed in vim-7.3.100) bug > that > count is not passed to plugins in normal commands. > Yup I must have some plugin that is doing that (the execute worked just fine)

Re: Delete, add 16, and insert

2011-01-30 Thread ZyX
Reply to message «Re: Delete, add 16, and insert», sent 23:26:19 30 January 2011, Sunday by Adam: Then you may have some plugin remapping ? Try doing execute "normal! 16\" and see whether it helps. There is a known (and fixed in vim-7.3.100) bug that count is not passed to plugins

Re: Delete, add 16, and insert

2011-01-30 Thread Adam
> > What you want is to enter the ^A literally which can be done by prefixing > it with control+V: > Oh sorry yeah that's what I did do (^V^A) I guess I left it out. When you do that it appears that it's only incrementing by 1 though instead of the prefix that you give it (16 in this case) ~Adam

Re: Delete, add 16, and insert

2011-01-30 Thread Tim Chase
On 01/30/11 12:46, Adam wrote: :g/^\d/norm 16(press control-a) I tried just going :norm 16^A but that also doesn't work (they both just increment the number by 1). I know that pressing 16^a in normal mode works correctly so that isn't the problem. If you only pressed ^A then it wasn't part of

Re: Delete, add 16, and insert

2011-01-30 Thread Adam
I'm curious why this doesn't work: :g/^\d/norm 16(press control-a) I tried just going :norm 16^A but that also doesn't work (they both just increment the number by 1). I know that pressing 16^a in normal mode works correctly so that isn't the problem. ~Adam~ -- You received this message from

Re: Delete, add 16, and insert

2011-01-29 Thread Israel Chauca F.
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 w

Delete, add 16, and insert

2011-01-29 Thread Colin Beighley
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. Thanks, Colin -- You received this message from the "