ZZ action (:wq) doesn`t work in russian/ukrainian layout #2

Closed
Vavooon opened this Issue Mar 30, 2013 · 9 comments

Comments

Projects
None yet
2 participants

Vavooon commented Mar 30, 2013

Nothing to append :)

Owner

powerman commented Mar 30, 2013

Looks like only first Z mapped correctly. Try this:
map ЯЯ ZZ

Owner

powerman commented Mar 30, 2013

Anyway, that's strange, because other multi-char combinations (like "dd" to del line) works ok.

Vavooon commented Mar 30, 2013

Thanks, this command works well. Shouldn`t you add it to plugin?

Owner

powerman commented Mar 30, 2013

That depends. I've asked about this in vim-dev maillist. If it's a bug I'd prefer to wait until it will be fixed in Vim. If it's a feature - I'd like to find list of all such commands like ZZ and ZQ and add mapping for them all at once.

Vavooon commented Mar 30, 2013

Ok, thank you.
Do you know anything about native foreign layouts support in vim? Does there is any progress in this way?

Owner

powerman commented Mar 30, 2013

If by "support" you mean "vim should know about this issue" - it's already know: there are ':langmap' (I've used it before for koi8-r translation, but after converting my system to utf-8 it breaks and I've to replace it with bundle of ':map').
If you mean "vim should have predefined langmaps for all languages" - I don't know is such feature exist in vim's todo.

Vavooon commented Mar 30, 2013

Thank you again.

Owner

powerman commented Apr 7, 2013

Looks like this is bug in Vim:

After first Z it uses plain_vgetc to get next character (which is a special-case because all user
mappings use different method). plain_vgetc does not do any remapping.

But I don't think it will be fixed.

This issue affect huge amount of commands in different modes (not just in Normal). And I'm not sure is it good idea to add hundreds additional mappings to fix it…

Owner

powerman commented Oct 11, 2013

fixed in 1.4

powerman closed this Oct 11, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment