function RangeTest(range_given, line1, line2)
if a:range_given
echo printf('range was given: %s - %s', a:line1, a:line2)
else
echo 'range was not given.'
endif
endfunction
command -range=0 RangeTest call RangeTest(<count>, <line1>, <line2>)
--
thinca <thinca@gmail.com>
--
You received this message from the "vim_use" 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
No comments:
Post a Comment