Adding some ideas from nvie's .vimrc (http://github.com/nvie/vimrc/raw/master/vimrc).