Vim colorscheme depending on mode

view full story

http://unix.stackexchange.com – I'm often doing the same mistake in vim, I forget whether I'm in insert or command mode... then I type in, I get random commands or I modify delete/code, and I have to undo. I do this mistake really too often. I was thinking of using the :colorscheme my_color_file to switch between two color scheme depending if I'm in insert mode or not. Basically, the command_color_file have a red signature(keywords, tabs) for command mode, while the insert_color_file have a green signature. However I don't find how to perform the :colorscheme call any time I enter one mode or another. Any idea if it is (HowTos)