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

dead keys are not propertly handled #582

Open
ecerulm opened this issue Dec 7, 2017 · 1 comment
Open

dead keys are not propertly handled #582

ecerulm opened this issue Dec 7, 2017 · 1 comment
Labels

Comments

@ecerulm
Copy link

ecerulm commented Dec 7, 2017

When using a Keyboard Input of "US International PC" to actually type " I need to press " followed by space (which is fine). But it's not handled properly in VimR. It's all ok in insert mode but in operator-pending mode is not handled like in neovim in terminal or MacVim.

Let me explain with an example , I use surround.vim to change single quotes to double quotes with cs'" which in my case should be typed as cs' " . When I type that in VimR it gets interpreted as cs' and thus it changes single quotes to spaces. If I type cs'" nothing happens.

So VimR is handling keypresses diferently than neovim in iTerm

@ecerulm
Copy link
Author

ecerulm commented Nov 14, 2019

I was suffering the same problem in MacVim and today I got a solution from the @ychin
macvim-dev/macvim#610 (comment)

Maybe from there the developers of VimR can get a hint on what is wrong in VimR handling of macOS input methods.

A good testcase is to input the following text in the buffer:

 This text contain the swedish letter ö and the swedish letter ä but also " (the double quote symbol)

With the "U.S International PC" keyboard layout, pressing 0f"a should jump to the letter ä in the buffer but right not it jumps directly to the " as soon as I type 0f". In this keyboard layout pressing the quote doesn't really output a quote, it enters an state where it waits the next key if the next key is a it will produce ä. if the next key is space then it will output ". So f"a it's really .

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

No branches or pull requests

2 participants