.vimrc
set syntax=on " 自动语法高亮
set nu " 显示行号
set ruler " 显示标尺
set showcmd " 输入的命令显示出来
set laststatus=2 " 启动显示状态行(1),总是显示状态行(2)
set foldenable " 允许折叠
set foldmethod=manual " 手动折叠
if version >= 603
set helplang=cn
set encoding=utf-8
endif
set fencs=utf-8,ucs-bom,shift-jis,gb18030,gbk,gb2312,cp936
set termencoding=utf-8
set encoding=utf-8
set fileencodings=ucs-bom,utf-8,cp936
set fileencoding=utf-8
set cursorline " 突出显示当前行
set cursorcolumn " 高亮当前列
set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [POS=%lL,%vC][%p%%]\ [TIME=%{strftime(\"%d/%m/%Y\ -\ %H:%M\")}] " 设置在状态行显示的信息
" Tab键的宽度
set tabstop=4
"搜索逐字符高亮
set hlsearch
set incsearch
" 侦测文件类型
filetype on
" 可以在buffer的任何地方使用鼠标(类似office中在工作区双击鼠标定位)
set mouse=a
set selection=exclusive
set selectmode=mouse,key
" 高亮显示匹配的括号
set showmatch
set go=