在~/.vimrc文件中追加如下內容:vim
inoremap ( ()<ESC>i
inoremap [ []<ESC>i
inoremap { {}<ESC>i
inoremap < <><ESC>i
inoremap ' ''<ESC>i
inoremap " ""<ESC>iide
-------------------下面是我愛用的其它配置----------------
set ts=4
set number
set ruler
syntax on
set mouse=a
set cindent
set shiftwidth=4
set expandtab ci