vim设置
在根目录下创建.vimrc文件
set nocompatible
set autoread
set shortmess=atI
set magic
set title
set nobackup
set mouse=a
set encoding=utf-8
set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1
set fileformats=unix,dos,mac
set termencoding=utf-8
set formatoptions+=m
set formatoptions+=B
set number
set nowrap
set showcmd
set showmode
set showmatch
set matchtime=2
set hlsearch
set incsearch
set ignorecase
set smartcase
set autoindent smartindent shiftround
set expandtab
set smarttab
set shiftround
set shiftwidth=4
set tabstop=4
set softtabstop=4
set cursorline
set laststatus=2
set ruler
set wrap