" Vim5 and later versions support syntax highlighting. Uncommenting the next
" line enables syntax highlighting by default.
if has("syntax")
syntax on
endif
" Uncomment the following to have Vim jump to the last position when
" reopening a file
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif
" Uncomment the following to have Vim load indentation rules and plugins
" according to the detected filetype.
if has("autocmd")
filetype plugin indent on
endif
" set tab indent width
set noexpandtab
set shiftwidth=4
set tabstop=4
set softtabstop=4
" set row number , otherwise set nonu
set nu
" set autoindent , otherwise set noautoindent
set autoindent
" encoding
set enc=utf8
" file encoding
set fenc=utf8
" file encodings
set fencs=utf8,ucs-bom,gb18030,gbk,gb2312,cp936