"basic setting:chap1=
set nocompatible
set nu
set background=dark
syntax on
set tabstop=4
set shiftwidth=4
set autoindent
filetype on
filetype plugin on
filetype indent on
"set cursorline
set backspace=2
"禁止生成临时文件
set nobackup
set noswapfile
set autoread
set autowrite
"搜索忽略大小写
set ignorecase
"搜索逐字符高亮
set hlsearch
set incsearch
"编码设置
set enc=utf-8
set fencs=utf-8,ucs-bom,shift-jis,gb18030,gbk,gb2312,cp936
"语言设置
set langmenu=zh_CN.UTF-8
set helplang=cn
"可以在buffer的任何地方使用鼠标(类似office中在公布工作区双击鼠标定位)
"set mouse=a
set selection=exclusive
set selectmode=mouse,key
"通过使用:commands命令,告诉我们文件的哪一行被改变过
set report=0
"在被分割的窗口间显示空白,便于阅读
set fillchars=vert:\ ,stl:\ ,stlnc:
colorscheme desert
"==chapter2 key mapping=
inoremap jj
inoremap [ []
inoremap ] []
inoremap ( ()
inoremap ) ()
inoremap { {
inoremap } {
inoremap < <>
inoremap " ""
inoremap ' ''