set encoding=utf8
set paste
set expandtab
set textwidth=4
set softtabstop=4
set shiftwidth=4
set autoindent
set backspace=indent, eol, start
set incsearch
set ignore
set ruler
set wildmenu
set commentstring=\ # \ %s
set foldlevel=0
set clipboard+=unnamed
syntax on
原文地址:http://blog.csdn.net/duomoke/article/details/42536015