Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
Vavooon opened this Issue · 9 comments

2 participants

@Vavooon

Nothing to append :)

@powerman
Owner

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

@powerman
Owner

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

@Vavooon

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

@powerman
Owner

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

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

@powerman
Owner

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

Thank you again.

@powerman
Owner

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…

@powerman
Owner

fixed in 1.4

@powerman powerman 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.