"sets defaults for gvim "the unclosed quote is a comment "for more info on vim and gvim see http://www.vim.org set columns=100 set lines=30 "winpos 10 30 "will always open gvim at that position " File: Colorize.vim " Summary: Change background color when in insert mode " Author: doug edmunds " Last Modified: 1 Aug 2001 " Version: 1.0 " " Description: " If you are a newbie, you know that it takes a while to get used " to being in insert mode / command mode. " This script provides a great visual clue by changing the background " color when you are in insert mode, and back again when you hit " escape. " It doesn't try to capture every possible way to get into insert mode, " just the main ones (i, o, s, and a), but you can easily add " lines similar to these to capture other keystrokes " which put you into insert mode. " " If you don't like 'lightyellow', pick another color :) " " To Install: " Add these lines to your _gvimrc file (located in the same dir as gvim) " " ====================== "the main keystrokes that put you into insert mode noremap i :highlight Normal guibg=lightyellowi noremap o :highlight Normal guibg=lightyellowo noremap s :highlight Normal guibg=lightyellows noremap a :highlight Normal guibg=lightyellowa noremap I :highlight Normal guibg=lightyellowI noremap O :highlight Normal guibg=lightyellowO noremap S :highlight Normal guibg=lightyellowS noremap A :highlight Normal guibg=lightyellowA "You need the next line to change the color back when you hit escape. inoremap :highlight Normal guibg=white "Note: the color "Sys_Window" works for Windows only. "If running linux, use white or lightgrey instead.