From: "Alexandru E. Ungur" Date: 2006-04-26T22:56:52+09:00 Subject: Re: Ruby IDE >>> sender: "Mark Volkmann" date: "Wed, Apr 26, 2006 at 09:51:45PM +0900" << On 4/26/06, Alexandru E. Ungur wrote: > > > I came up with a rather nice solution to it: I use the entire statusbar's > > background color to tell me where I am: RED background == edit mode, GREEN > > background == normal mode. > > Can you share what you put in your .vimrc to configure that? Sure, here you go: --- .vimrc excerpt for statusbar highlighting --- " Only do this part when compiled with support for autocommands, " You better have Vim7 'cause this does all the magic :) if has("autocmd") augroup InsertStatus au InsertEnter * hi StatusLine term=inverse,bold cterm=inverse,bold ctermfg=red ctermbg=white au InsertLeave * hi StatusLine term=inverse,bold cterm=inverse,bold ctermfg=green ctermbg=white augroup END endif " ensure statusline is always shown set ls=2 " custom statusline set statusline=%