jpalardy / vim-slime

A vim plugin to give you some slime. (Emacs)
http://technotales.wordpress.com/2007/10/03/like-slime-for-vim/
MIT License
1.83k stars 223 forks source link

Unicode sending issues #339

Closed huijunchen9260 closed 1 year ago

huijunchen9260 commented 1 year ago

Dear Palardy:

Recently I started to code in julia, and julia has a great functionality that can easily enter unicode character, so I can directly let β = 1 something like that.

However when I use vim-slime to send these unicode character in the julia REPL, it seems like it doesn't send the unicode character:

image

If I copy and paste the line under the cursor to the julia REPL, then it would be correctly executed.

Is there any way that I can let vim-slime to send unicode character?

Thanks!

huijunchen9260 commented 1 year ago

It turns out that it is the issue of xdotool, since I am using X11. When I changed to use vim terminal this issue goes away.

jpalardy commented 1 year ago

hi @huijunchen9260

glad you have something working now 👍

huijunchen9260 commented 1 year ago

hi @huijunchen9260

glad you have something working now +1

Thank you for quick response @jpalardy !

For some future reference, I'll type what I realized about xdotool here:

According to this post, most likely if you want to type "β", you are typing the unicode set of "β", rather than "β" itself. So based on my own test, this caused the serious delay in typing, i.e.,

I guess that xdotool needs more time to type unicode out, so causing that delay.

That being said, I am now switching to neovim terminal so the bug in xdotool doesn't matter to me anymore 🤣🤣