set nocompatible set number filetype on set history=1000 set background=dark syntax on set autoindent set smartindent set tabstop=4 set shiftwidth=4 set showmatch set guioptions-=T set vb t_vb= set ruler set nohls set incsearch if has("vms") set nobackup else set backup endif
注意:
1、红帽企业版五中的配置文件为/etc/vimrc
2、关于背景色貌似只能更改终端的背景色
原文:http://www.cnblogs.com/beceo/p/3590690.html