Thursday, September 9, 2010

RE: count and v:operator not set correctly in vim7.3

>The problem is that when you type ":echo v:count" there is
>no count (it was a previous command which had a count).

>Borrowing from ':help v:count', you could try this:

> :map <F8> :<C-U>echo "the count is " . v:count<CR>
>3d2<F8>

>That is, type 3 then d then 2 then press F8 to invoke the
>mapping. It displays "the count is 6".

Well,
3d2<F8> displays "the count is6"
but 3d2w<F8> still gives "the count is0"
and I learned that <C-U> is just to clear the comands in the command line before <C-U> is pressed.

Thanks,
Best wishes

--
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: