以前一直用emacs,现在上班了,感觉用vim方便点,因为这是系统自带的,配制文件备份如下:
syntax on
set nu
set showmatch
set ts=4
set softtabstop=4
syntax enable
syntax on
set cursorline
if &term=="xterm"
set t_Co=8
set t_Sb=^[[4%dm
set t_Sf=^[[3%dm
endif
"indent based on file type
filetype indent plugin on
filetype on
set autoindent
set smartindent
set ruler
"show command in bottom
set showcmd
set shiftwidth=4
set hlsearch
set encoding=utf-8
set fileencodings=ucs-bom,utf-8,cp936
set autoread “ auto refresh file when change