ZyX wrote: > > :com! -range TestZeroRange echo <line1> <line2> > > :0TestZeroRange > > > > 1 1 > > > > Zero is converted to one. > > > > Shouldn't that be regarded a bug? > 1. It is not a bug because first line has number `1', not `0'. > 2. `:0read!echo "abc"' and `:1read!echo "abc"' are different, so you > may want to > punish Bram for having yet another hack for built-in commands.
You can use -range=1 to allow for a zero line number. -- hundred-and-one symptoms of being an internet addict: 3. Your bookmark takes 15 minutes to scroll from top to bottom. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- 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
