VIM config

" 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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章