-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
cursor can't restore its shape after leaving Vim and WSL #13420
Comments
I'm afraid this is known issue with neovim (see neovim/neovim#4396), and their recommended workaround is to reset the cursor manually with a See also #9081. |
Oh, I see. Thanks for your time. I managed to fix it with a |
@j4james what if I'm using neovim? |
@amine-aboufirass I don't understand what you're asking. The issue I linked above, and the suggested workaround is for neovim. |
@j4james I see, I misread your comment. I have tried opening an |
Note that what you're requesting there is a block cursor that doesn't blink. If that's not the style you want it changed back to, it's obviously not going to work. For example, if you want to change it back to a horizontal bar that does blink, you'd need to do something like this:
If you don't want to have to specify the exact cursor type, and just want it changed back to whatever you've configured in the Windows Terminal settings, I don't know of an easy way to do that, but one of the suggestions in the nvim issue tracker was this:
That said, if you're not using the WSL version of nvim, I'm not which of these options will work, if any. |
The cursor doesn't change back to original style after leaving Vim on WSL and Windows Terminal. microsoft/terminal#13420 (comment) neovim/neovim#4867 (comment)
The cursor doesn't change back to original style after leaving Vim on WSL and Windows Terminal. microsoft/terminal#13420 (comment) neovim/neovim#4867 (comment)
For reference to anyone googling this issue: I fixed it by setting my cursor to be a line (same as I use in my Windows Terminal). No need for an autocmd. In my
|
Windows Terminal version
1.13.11432.0
Windows build number
10.0.22000.0
Other Software
Ubuntu 22.04 LTS
Neovim v0.7.0
Steps to reproduce
The cursor is currently a blinking bar as I set in the configuration for WT.
Then enter Ubuntu by entering
wsl
.Open
nvim
.Quit it.
Quit WSL.
bug.mp4
Expected Behavior
The cursor should be stored to a blinking bar immediately after I quit Neovim.
Actual Behavior
The cursor continues to be a white block.
It seems that after Neovim changed the shape of the text input cursor, Windows Terminal didn't change it back.
The text was updated successfully, but these errors were encountered: