powerman / vim-plugin-ruscmd

Vim plugin: support command mode in Russian keyboard layout
http://www.vim.org/scripts/script.php?script_id=3885
67 stars 15 forks source link

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

Closed Vavooon closed 11 years ago

Vavooon commented 11 years ago

Nothing to append :)

powerman commented 11 years ago

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

powerman commented 11 years ago

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

Vavooon commented 11 years ago

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

powerman commented 11 years ago

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 11 years ago

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

powerman commented 11 years ago

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 11 years ago

Thank you again.

powerman commented 11 years ago

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 commented 11 years ago

fixed in 1.4