Friday, February 6, 2015

Re: Change the cursor shape in overtype mode ?

On 05.02.15 01:55, Duddy67 wrote:
> In my vimrc file I put the following code in order to change the cursor
> shape:
>
> if &term =~ "xterm"
> " blinking vertical bar
> let &t_SI .= "\<Esc>[5 q"
> " blinking block
> let &t_EI .= "\<Esc>[1 q"
> endif
>
> It works great but now I'd like to take it further and change also the
> cursor shape (blinking underscore) whenever the overtype mode is used (r and
> R keys). How could I achieve this ?

That sounds like an attractive idea, but in term.txt, under "Added by
Vim", I see only:

t_SI start insert mode (bar cursor shape) *t_SI* *'t_SI'*
t_EI end insert mode (block cursor shape) *t_EI* *'t_EI'*

so I'm not able to see how you could do anything different for replace mode.

There is no mention of replace mode at :h modes, and insert mode
mappings are active in replace mode, so it appears not to be a full
mode, but a sub-mode of insert mode, AFAICT.

Erik

--
"The disease that we're facing in Greece at the moment is that a problem of
insolvency for five years has been dealt with as a problem of liquidity."
- Greek Finance Minister Yanis Varoufakis
http://www.bbc.com/news/world-europe-31072321

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: