Monday, April 4, 2011

Re: A Few Issues with the non-gui vim

On Sun, Apr 03, 2011 at 05:37:05AM -0700, ale wrote:
> >
> set term? gives me xterm.
> i haven't change it manually.

Given that, and some proposed solutions which might not be so easy for
everyone to maintain long term, due to complexity, I'll offer what is
working for me, in an xterm. (So far, anyway. :-) In .vimrc:

" Appearance: (Insert_Mode == Green, Normal_Mode == Red)
if &term =~ "xterm"
let &t_SI = "\<Esc>]12;green\x7"
let &t_EI = "\<Esc>]12;red\x7"
endif

I've only had it in place for a month or so, but haven't yet had any
surprises. It does take a second to change to red on exit from insert
mode, but I can usually remember that long what I've done. YMMV.

Erik

--
Do not do unto others as you would they should do unto you.
Their tastes may not be the same.
- George Bernard Shaw

--
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

No comments: