Loading ...
Sorry, an error occurred while loading the content.

63939Re: needless in ftplugin/changelog.vim

Expand Messages
  • tyru
    Jan 31, 2012
    • 0 Attachment
      On Tue, Jan 31, 2012 at 6:58 PM, Ingo Karkat <swdev@...> wrote:
      > 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)

      yes.
      so if I do it correctly, it'd be like this.

      > vnoremap <buffer> <silent> <Leader>o :call <SID>new_changelog_entry()<CR>
      > onoremap <buffer> <silent> <Leader>o :call <SID>new_changelog_entry()<CR>
      > nnoremap <buffer> <silent> <Leader>o :<C-u>call <SID>new_changelog_entry()<CR>

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

      --
      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
    • Show all 10 messages in this topic