-
-
Notifications
You must be signed in to change notification settings - Fork 987
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
Mac OS + Vim + Accent characters #466
Comments
The way to add an acute accent to a character in macOS is by
I'm not sure why you think typing Most accented letters are represented in unicode in two possible ways, either as single codepoints, or in "decomposed" form as two code points, the base letter and the combining diactritical mark. For example In neither of those representations is U+00b4 involved (the accent character you are using which is the non-combining form of the accent involved) Note that currently it's possible that step two above will not work in kitty because of a bug, see #465 |
If it does not work you can work around it by using the send_text feature of kitty. Something like:
Then typing e and then pressing ctrl+shift+x should produce é |
Actually, no, 2. not working is not caused by #465 but by a fundamental limitation of glfw on macOS, it does not support dead keys at all. glfw/glfw#41 So while simple compose option key + letter will work, dead keys wont work. Best to use the send_text work around I documented above. |
The As for the typing of |
WOrks for me, steps I tried:
to kitty.conf
|
The above works within |
Works in vim as well for me although I tried with an upto date vim, not the one that comes with macOS (version 8.0 patch level 1542). In any case vim has its own method for inputting accents called digraphs, IIRC it works with ctrl+V but check :help digraph As for the native macOS method, as I said, it will need towait for support for dead keys in macOS to be added to glfw, see #465 |
Expected behavior:
When using
vim
withinkitty
within MacOS, and typing something containing accents, like for example:Déjà vu
I would expect it to appear in vim as typed, and for the accented character to behave as a single character. In particular, i should be able to modify the above sentence into
Déjí vu
By simply hovering over the
à
character and typing the sequencer´i
.Actual behavior:
Upon typing:
Déjà vu
What visually appears is:
Dé j| vu
(Note the spaces after each accented character and the "wrong" grave accent)However, in order to replace "correctly", i need to both remove the accented character and the following space, but this space has some very "interesting properties":
The consequence of this is that vim is unusable under Kitty when working in a language that requires accented characters (such as Spanish).
I believe this is related to the characters being composed of two unicode characters combined, and it's possible it may be more of a vim issue (maybe even some configuration unknown to me could solve it).
The text was updated successfully, but these errors were encountered: