On 31-Jan-2012 18:49:36 +0900, tyru wrote: >>> It'd be better if rhs is ":<C-u>call ..." instead of ":call ..." >> >> Do you mean that avoid to call the function with :'<,'>? However, this >> function don't work for contents in visual selection. > oh, I mistook "noremap" for "nnoremap" . > What I wanted to say was that nnoremap's rhs should concern about > input when [count] was given in order to avoid "E481: No range allowed" . > However, in this case, that's not the case I said because the patch is > "noremap", not "nnoremap" .
<C-u> is still useful in normal mode mappings to avoid repeated execution of the :call when a [count] is accidentally given. (4:call -> .,.+3call) -- regards, ingo -- You received this message from the "vim_dev" 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
