Skip to content
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

restore keyboard layout on vim exit #16

Open
DanielFabian opened this issue Jan 17, 2015 · 3 comments
Open

restore keyboard layout on vim exit #16

DanielFabian opened this issue Jan 17, 2015 · 3 comments

Comments

@DanielFabian
Copy link

I just installed the plugin and it works really nicely. Just one thing, I haven't figured out how to do, is: How can I restore my original key map as opposed to the normal mode one, when exiting vim.

I use swiss layout for typing text and us for vim normal mode. So I'd like vim to go back swiss layout, once I exit vim, as opposed to staying us. Is there any way to do that?

@lyokha
Copy link
Owner

lyokha commented Jan 17, 2015

Hmm, a good point! It is not implemented but it's easy to do. Wait a minute...

lyokha added a commit that referenced this issue Jan 17, 2015
@lyokha
Copy link
Owner

lyokha commented Jan 17, 2015

Try updated version.

@lyokha
Copy link
Owner

lyokha commented Jan 18, 2015

I'll leave it open because current implementation works well only in terminals (which is rarely needed in practice), but gvim has issues both in Linux and Windows (see comments to commit 1e5d4c9).

  1. In Windows with global keyboard layout switching configuration it does not work for unknown reason.
  2. In Linux there are confusing interactions with keyboard layout switching layers like xneur.

This issue requires further investigations for gvim. In any cases the feature is not required at all when the system keyboard layout switcher is configured on per-window basis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants