-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
noremap bindings not working #18
Comments
Thanks for hunting that down. I made the changes you suggested on the noremap branch. As far as I can tell the issue is fixed but I will do some additional testing. (I vaguely remember there was a reason I set the flag to "mt") The mapping information is read with |
Excellent! I'll give it a go later today. Thank you for taking action so quickly :D Also, thanks for the information about |
These changes resolve the issue! 👍 |
I've gotten into the habit of using
noremap
for a lot of my keybindings, but this doesn't work withvim-leader-guide
.Minimal
.vimrc
to reproduce the problem, assumingvim-plug
is installed:Steps to reproduce problem:
vim
[e
and observe thathello world
is echoed[
and wait for the leader guide to show upw
and observe that the mapping was fed with remapping, thus puttingo "hello world"
into the bufferI've done some investigating on my own, and found that if the
feedkeys
flags are changed to"nt"
on this line, this case works as expected, but breaks non-noremapped mappings. I think the solution here is to dynamically set the flags in response to the key's entry in:map
, since noremapped mappings will have an asterisk between the key and the mapping. However, I don't know the code well enough to fix this issue myself. If you don't have the spare time on your hands, I'd be more than happy to fix the issue. Just give me a few pointers on where to make my changes :)The text was updated successfully, but these errors were encountered: