3

I'm trying to tailor vim to my needs and I would like vim to visually indicate when it is in some kind of edit mode (insert/replace) by, for example, coloring the background red. Is there any way to achieve this?

3

2 Answers 2

3

The vim-powerline plugin provides a nicely colored indicator of the current mode in the statusline: http://i.imgur.com/MsuIB.png

In addition to other useful indicators, like the current git branch.

0

I added this to my .vimrc it change the background to yellow only when I am in insert mode

:au InsertEnter * hi Normal term=reverse ctermbg=darkgrey guibg=yellow "

:au InsertLeave * hi Normal term=NONE ctermbg=black guibg=white "

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .