-
Notifications
You must be signed in to change notification settings - Fork 88
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
keymap option is ignored #47
Comments
Thanks for the report! Glad you like the plugin. I emailed the vim_use mailing list about this. As maybe you already know, Any ideas? |
After a quick look in vim's docs, I found this (in
I'm not sure how this can be used programmatically though (maybe with a |
Andy on vim_use gave a great clue about this! https://groups.google.com/forum/#!topic/vim_use/yPXKsV2Tc_c It's a little tricky for multi-key maps (like |
How about |
My vim doesn't appear to have |
Setting On brew-installed 7.4 macvim, pressing "b" results in "98" (regardless of |
Thanks! When you |
For some reason I can't get Anyway, I don't think modifying
it seems to me that Maybe the solution here would be not to support multi-key chars in vim-sneak |
I think that might be the case. But I have a pretty good hack working. I will commit next week |
Throwing in an idea: Not sure if this could be of any use... |
Cool! Great find. Will test |
Hey, the changes are available in this branch: https://github.com/justinmk/vim-sneak/tree/mbyte-keymap It looks for |
It works pretty well, except invalid sequences will keep accepting input until you hit |
Nice! I tested it and didn't find any issues. Regarding Regarding multi-byte keymaps, I think that might also be an overkill for the bulgarian-phonetic keymap. I've never used another keymap, so I don't know how much use they make of multi-byte chars. Looking at the (distributed with vim) keymaps in runtime/keymap, I see some keymaps make heavy use of them, while others don't define any mbyte chars. If it were up to me - I would keep the source cleaner and the functionality limited, i.e. I would want a cleaner (hack-less) source tree and a 99% feature completeness, rather than 100% features and a hairy source tree. Anyway, maybe it does make sense to support mbyte chars in vim-sneak. BTW it seems some bozo decided to add Russian characters in bulgarian-phonetic, hence the mbyte chars http://vim.1045645.n5.nabble.com/keymap-files-for-Bulgarian-td1155752.html I'll contact him and ask him why didn't he include all freakin alphabets in bulgarian-phonetic, just Russian :) Anyway, thank you for your work! |
This is in the main branch now. In case you use streak-mode, there's still a known highlighting bug with multibyte chars like |
Thanks! |
sneak.vim doesn't respect the keymap option. Vanilla
f
andt
do respect it. To reproduce::set keymap=bulgarian-phonetic
(or any other non-english keymap, I guess)абв
(no english letters)fb
goes to letterб
(б
is entered with keyb
) -- this is expected, just shows thatf
respects the keymapfbw
saysnot found: bw
-- at this point, I would expect the cursor to be placed onбв
(бв
is entered with keysbw
)I guess this has to do with the fact that
s
starts command mode, where the keymap is ignored by vim.BTW Great plugin!
The text was updated successfully, but these errors were encountered: