Edit ~/.vimrc:
" Set Encoding set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936 set termencoding=utf-8 set encoding=utf-8 " Display Line Number set number set nu " Highlight syntax syntax on " Highlight current line set cursorline "set cul " Highlight current column set cursorcolumn "set cuc " Highlight Match set showmatch " Highlight serach set hlsearch " Tab indent set tabstop=4 set shiftwidth=4 set expandtab set smarttab " Auto indent set autoindent " Smart indent set smartindent " set paste mode set paste " Always display status bar set laststatus=2 " Show current cursor set ruler " Show CMD set showcmd " auto determine file type filetype plugin indent on