set nocompatible
set encoding=utf-8
set title
set number
colorscheme evening
"colorscheme elflord
"set mouse=a
set hlsearch
set incsearch
set lbr
set backspace=indent,eol,start
set history=50
set ruler
set showcmd
set list
set listchars=tab:>-,trail:-
filetype plugin indent on
" C/C++
set sm
set sw=4
set ts=4 "set tabstop=4
set et
set smarttab
set autoindent
set showmatch
syntax on
" chinese support
set fo+=mB
set ambiwidth=double
set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1
set paste
配置方法: ubuntu下面, /etc/vim/vimrc 是配置文件。上面的配置内容,加入到 vimrc这个文件当中。如果怕出问题,先备份 vimrc