anna wrote: > Hi, > > I found error "E16:Invalid range". This is how to reproduce it. > > :function! Foo() > :echo "foo" > :endfunction > :nmap x :call Foo()<CR> > > If I input "x" or "2x" in normal mode, it behaves as expected, > echoing "foo". However, if input "3x" or greater range, then it throws > me error E16:Invalid range". > > Any advice why this could happen? > Thank you > > Probably because you invoked your map within two lines of the end of the file. See
http://vim.wikia.com/wiki/VimTip895 (especially the example on 5\aa) Regards, Chip Campbell --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
