-
Notifications
You must be signed in to change notification settings - Fork 0
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
Powershell : Cursor shape does not recover after exiting vim #5
Comments
(Issue) cursor does not reset on exiting from vim - microsoft/terminal#4335 (Issue : #5)
(Issue) cursor does not reset on exiting from vim - microsoft/terminal#4335
helpful links :
tried : " https//vim.fandom.com/wiki/Configuring_the_cursor
" 1 or 0 -> blinking block
" 2 solid block
" 3 -> blinking underscore
" 4 solid underscore
" Recent versions of xterm (282 or above) also support
" 5 -> blinking vertical bar
" 6 -> solid vertical bar
autocmd VimLeave * silent !echo -ne "\e[6 q"
autocmd VimLeave * silent !printf "\e[6 q" works ✔ autocmd VimLeave * set guicursor=a:ver25 see |
why: to distinguish between command and normal modes of vi mode in powershell how: using VimLeave event and guicursor option misc: see :help guicursor links: - neovim/neovim#4867 - microsoft/terminal#4335 tags: cursor,cursor-shape fixes #5
why: to distinguish between command and normal modes of vi mode in powershell how: using VimLeave event and guicursor option misc: see :help guicursor links: - neovim/neovim#4867 - microsoft/terminal#4335 tags: cursor,cursor-shape fixes #5
In powershell, |
Hmmm, " https//vim.fandom.com/wiki/Configuring_the_cursor
" 1 or 0 -> blinking block
" 2 solid block
" 3 -> blinking underscore
" 4 solid underscore " Recent versions of xterm (282 or above) also support
" 5 -> blinking vertical bar
" 6 -> solid vertical bar
autocmd VimLeave * silent !echo -ne "\e[6 q"
autocmd VimLeave * silent !printf "\e[6 q"
|
🥲 these autocmds only works in WSL(ubuntu/arch..), not in powershell |
@younger-1 if you use the default prompt, put this in your powershell profile
If you use oh-my-posh
|
Issue Description
After exiting vim cursor is in block state itself
Expected
More Info
The text was updated successfully, but these errors were encountered: