! change darkblue brighter
XTerm*VT100*color4: #0088ff
you have to run xrdb or restart x to take effect.
BTW ubuntu does not use xterm as its default term emulator as far as I know.
--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
To remind myself what mode I'm in I have the text-cursor change color,
using the following in my vimrc. Note that the ^[ and ^G here are not
literal two-character combinations (ie, can't just cut & paste those
parts), but Escape and Ctrl-G formed by pressing Ctrl-V then escape,
and Ctrl-V then Ctrl-G respectively.
" text-cursor color by mode in xterm, linux console and screen.linux console:
" normal mode = golden, insert mode = green, return to green when leaving vim
if &term =~ "xterm"
:silent !echo -ne "\033]12;GoldenRod\007"
set t_SI+=^[]12;green^G
set t_EI+=^[]12;GoldenRod^G
autocmd VimLeave * :!echo -ne "\033]12;green\007"
" show 'Vim, filename' in xterm title bar
set titlestring=\%(\%M%)%t\ (Vim)
" Set xterm to 16 colors (don't I want more?)
set t_Co=16
endif
if &term == "linux" && !has("gui_running")
set t_ve+=^[[?17;183;95c " yellow
au InsertEnter * set t_ve+=^[[?17;207;111c " green
au InsertLeave * set t_ve+=^[[?17;183;95c " yellow
autocmd VimLeave * set t_ve+=^[[?17;207;111c " green
endif
if &term == "screen.linux"
set t_ve+=^[[34l
au InsertEnter * set t_ve+=^[[34h^[[?25h " cnorm
au InsertLeave * set t_ve+=^[[34l " cvvis
autocmd VimLeave * set t_ve+=^[[34h^[[?25h
" show 'V:filename' as window name for screen (Tip 1126)
set titlestring=\%(\%M%)V:%t
set t_ts=^[k
set t_fs=^[\
endif
Regards,
John
--
John Magolske
http://B79.net/contact
Probably a termcap setting. What console are you using?
[...]
> why all this branching? are all terminals quering the same db
> (terminfo?)?
I have three conditions set for the three terms I use, Xterm, linux
and screen.linux, which all require different control sequences.
First off, that file name is spelled .Xresources, with an s at the
end.
Next, for changes to the ~/.Xresources or ~/.Xdefaults file to take
effect, the file has to be read by the X resource database manager.
This is done automatically when your window manager starts. If you
want changes made to that file to take effect without restarting
your window manager, you'll have to run 'xrdb', like this:
$ xrdb -merge ~/.Xresources
Regards,
Gary
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