vim and cursor-over-"chars" question

Thomas Dickey dickey at his.com
Wed Sep 10 19:50:03 UTC 2014


----- Original Message -----
| From: "Parv" <parv at pair.com>
| To: "Johannes-Maria Kaltenbach" <johannes-maria at t-online.de>
| Cc: freebsd-questions at freebsd.org
| Sent: Wednesday, September 10, 2014 9:14:48 AM
| Subject: Re: vim and cursor-over-"chars" question
| 
| in message <20140910132008.GA1958 at localhost>,
| wrote Johannes-Maria Kaltenbach thusly...
| >
| ...
| > or you can set this xterm configuration in your .vimrc:
| >
| > for cursor in command mode:
| >
| > let &t_EI = "\<Esc>]12;orange\x7"
| >
| > and in insert mode:
| >
| > let &t_SI = "\<Esc>]12;orange\x7"
| >
| > where you can choose a different colour.
| 
| Thanks much, Johannes-Maria.
| 
| Only thing is that cursor color (with which xterm was started) is
| not restored after editing or opening a file in vim. I can live with
| that.

A 112 (in contrast to 12) is supposed to reset the cursor color to its initial value.
Using that would help eliminate the explicit color here.

-- 
Thomas E. Dickey <dickey at invisible-island.net>
http://invisible-island.net
ftp://invisible-island.net


More information about the freebsd-questions mailing list