On 28 November 2014, itchyny <neknekneknek.ky...@gmail.com> wrote: > Bram, the <line1> is always 1 (probably after this patch). > > :command! Test echo <line1> > > try :Test and it always echoes 1.
I don't think this is a relevant test. You need to pass "-range" when defining "Test" if you want it to handle ranges: :command! -range Test echo <line1> /lcd -- -- 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 --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.