On 5 мар, 05:57, Tony Mechelynck <[email protected]> wrote:
> On 04/03/09 20:30, Maxim Kim wrote:
> >> map ,ff :<c-u>call Hello(v:count)<CR>
>
> > function! Hello(count)
> >    "do smth useable here a:count
> >    echo a:count
> > endfunction
> > command! -count Hello call Hello(v:count)
> > map ,ff :Hello<CR>

> Without <C-U> this will convert whatever count you prepended to the
> mapping to a range of (count) lines starting at the cursor line.
>
> See ":help v:count" for details, and an example.

<C-U> has no effect on :command stuff. Just on functions?
Do I miss something?
function! Hello(count)
  "do smth useable here with a:count
  echo a:count
endfunction
command! -count Hello call Hello(v:count)
map ,ff :<C-U>Hello<CR>
"map ,ff :Hello<CR>


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to