I am using ibeam
a.k.a vertical bar
cursor right now. When I switch to terminal
mode in vim
, it changes the cursor shape to block
- but doesn't restore it after I quit the terminal
.
I tried changing it in my shell as per the below comment; it works for :terminal
but not for :terminal tig
.
:help terminal
has a section called terminal-cursor-style
, but I am not able sure what to do with that information.
Is it possible to inherit the terminal emulator's cursor shape inside vim
-- if not, can I at-least configure it to us my cursor style?
ibeam
cursor (whatever that is), simply run it in Vims terminal and it should adjust the cursor accordingly.echo -e -n "\x1b[\x35 q"
. I would like know if this is configurable + if I can re-use this info from my terminal and not repeat it..bashrc
or similar shell configuration file.[[ $TERM == xterm* ]] && echo -e -n "\x1b[\x35 q"
works when you simply do:terminal
. But when you do something like:terminal tig
and come back, it changes back to block cursor.[[ $TERM == xterm* ]] && echo -e -n "\x1b[\x35 q"
, doesnt work.