Ingo, > You need to explicitly pass the range from the command to the function via the > <line1> and <line2> replacements: > > command! -range Myfunction <line1>,<line2>call s:Myfunction() >
Works perfectly. > -- regards, ingo > > PS: Better post these kinds of questions to vim_use please. Sorry about that. Thanks, Nathan --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
