vim-slime icon indicating copy to clipboard operation
vim-slime copied to clipboard

[Issue] Send code have problem with normal-terminal mode vim

Open hungpham3112 opened this issue 2 years ago • 9 comments

I map <Esc> to use normal mode inside terminal vim. When I send a group of code into this terminal, it has some problems

  1. Code look weird when send from vim buffer to terminal

https://user-images.githubusercontent.com/75968004/162155262-ba90591b-258e-408e-a104-7146e3d2bc7b.mp4

  1. In Windows Terminal, the julia header is wrapped.

image

  1. In normal-terminal mode, the sending code isn't updated when send from buffer to terminal.

https://user-images.githubusercontent.com/75968004/162159999-5a21bbe4-227f-4b88-bb93-897d9abadf76.mp4

hungpham3112 avatar Apr 07 '22 08:04 hungpham3112

hi @hungpham3112

have you tried tmux? does this only happen with vim terminal?

jpalardy avatar Apr 08 '22 02:04 jpalardy

hi @hungpham3112

have you tried tmux? does this only happen with vim terminal?

Thanks you for quick reply. I have never tried tmux, This happen to me with vim-terminal inside Windows Terminal, in Gvim the Julia header doesn't wrap but others issue still there. I just use this plugin for the first time and like it.

hungpham3112 avatar Apr 08 '22 08:04 hungpham3112

We can iterate: if you try different combinations are find something, let me know.

jpalardy avatar Apr 09 '22 02:04 jpalardy

We can iterate: if you try different combinations are find something, let me know.

I can confirm to you that just Windows Terminal has the second issue. I tested cmd.exe, window powershell, window terminal, alacritty and still exist the first and third issue above.

hungpham3112 avatar Apr 09 '22 09:04 hungpham3112

Is that just with julia? Do other REPL behave the same?

jpalardy avatar Apr 09 '22 19:04 jpalardy

Is that just with julia? Do other REPL behave the same?

I opened the issue https://github.com/JuliaLang/julia/issues/44927, it seems like problem with Julia REPL. The first issue caused by Julia REPL and the third because of vim. I think this is my fault, sorry to waste your time. I will try to reproduce and will close this issue when I'm done.

hungpham3112 avatar Apr 10 '22 00:04 hungpham3112

ok, keep me posted

jpalardy avatar Apr 10 '22 00:04 jpalardy

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 13 '22 06:08 stale[bot]

Today, I look back to this problem. The first issue is caused by the Julia REPL behavior in Windows, the third is caused by the expected behavior of terminal mode in vim, not related to this plugin. The second issue I assume it is a bug with Window Terminal.

hungpham3112 avatar Oct 12 '22 00:10 hungpham3112

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 07 '23 19:01 stale[bot]