Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Sep 2014 15:49:49 -0400 (EDT)
From:      Thomas Dickey <dickey@his.com>
To:        Parv <parv@pair.com>
Cc:        Johannes-Maria Kaltenbach <johannes-maria@t-online.de>, freebsd-questions@freebsd.org
Subject:   Re: vim and cursor-over-"chars" question
Message-ID:  <1490805295.22897370.1410378589785.JavaMail.root@his.com>
In-Reply-To: <20140910131448.GA1574@holstein.holy.cow>

next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message -----
| From: "Parv" <parv@pair.com>
| To: "Johannes-Maria Kaltenbach" <johannes-maria@t-online.de>
| Cc: freebsd-questions@freebsd.org
| Sent: Wednesday, September 10, 2014 9:14:48 AM
| Subject: Re: vim and cursor-over-"chars" question
| 
| in message <20140910132008.GA1958@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@invisible-island.net>
http://invisible-island.net
ftp://invisible-island.net



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1490805295.22897370.1410378589785.JavaMail.root>