set nocompatible
set nu
filetype on
set history=1000
set background=dark
syntax on
set autoindent
set mouse=a
set smartindent
set showmatch
set guioptions-=T
set vb t_vb=
set ruler
set nohls
set incsearch
set cursorline "突出显示当前行
if has("vms")
set nobackup
else
set backup
set shiftwidth=4 "设置tab的间隔
set tabstop=4 "四个空格代表一个tab
set sts=4
set nowrap "设置自动换行
set encoding=utf-8 "设置编码为utf-8
set fileencoding=utf-8
set fileencodings=ucs-bom,utf-8,GB18030,cp936,big5,euc-jp,euc-kr,latin1
endif