Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Plug mappings are ambiguous #9

Closed
guns opened this Issue · 4 comments

2 participants

@guns

Hello,

The plug mappings <Plug>NrrwrgnDo and <Plug>NrrwrgnDo1 are ambiguous
and cause a slight delay of timeoutlen ms, or a complete pause if set
notimeout
.

What is happening is that Vim sees that the first mapping may
potentially be a subset of the second mappings and waits for timeout
ms before executing the mapping. If notimeout is set, it waits for
user input to disambiguate the name clash. At this point the user can
actually trigger <Plug>NrrwrgnDo1 by pressing: <Leader>nr1!

I changed my local copy to simply rename the bang versions of the plugs
to <Plug>NrrwrgnBangDo and <Plug>VisualNrrwBangRgn to resolve.

BTW, this is a separate issue, but the new mapping <Leader>Nr does not
reuse the same window like :NR!, as it seems intended to do.

Thanks for the software!

@chrisbra
Owner

Thanks for the detailed feedback. I fixed it and it should work now.

@guns

Who is Peng Su?

:)

  • Sung Pae
@chrisbra
Owner

Sorry, I'll update it in the documentation.

@guns
@chrisbra chrisbra closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.