Am 09.04.2011 13:22, schrieb Tony Mechelynck:
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.
:com! -range TestZeroRange echo <line1> <line2>
:0TestZeroRange
1 1
Zero is converted to one.
Shouldn't that be regarded a bug?
--
Andy
--
You received this message from the "vim_dev" 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