Reply to message «Re: Wish: <range>», sent 15:22:29 09 April 2011, Saturday by Tony Mechelynck:
> Could you give a use case which would not work just as well with either > -range or -range=% ? You'd have to use that range somewhere. > > Maybe you could use :0command for your special case? That range is > allowed, but for some commands it is not meaningful. If I understood him correctly, he wants to write `<range>' where now you write `<line1>,<line2>', like this: command -range Foo <range>call s:Foo() instead of command -range Foo <line1>,<line2>call s:Foo() . Original message: > On 09/04/11 10:57, Andy Wokula wrote: > > I'd appreciate a <range> argument that can be used like > > <line1>,<line2> > > but which is empty when no range was given. > > > > I'm talking about > > > > :h :command-range > > Could you give a use case which would not work just as well with either > -range or -range=% ? You'd have to use that range somewhere. > > Maybe you could use :0command for your special case? That range is > allowed, but for some commands it is not meaningful. > > > Best regards, > Tony.
signature.asc
Description: This is a digitally signed message part.