摘自《嵌入式C语言自我修养》
set number
colorscheme industry
set backspace=2
set ruler
set showcmd
set fileencodings=ucs-bom,utf-8,cp936,gb2312,gb18030,big5
set background=dark
set encoding=utf-8
set smartindent
set autoindent
set cul
set linespace=2
set showmatch
"font and size
"set guifont=Menlo:h14
" Softtabs, 4 spaces
set tabstop=4
set shiftwidth=4
set shiftround
set softtabstop=4
set expandtab "将tab换为空格
set smarttab
" 单独设置makefile不用tab换空格
autocmd FileType make set noexpandtab
"Highlight current line
au WinLeave * set nocursorline
au WinEnter * set cursorline
set cursorline
inoremap < <><Esc>i
inoremap > <><Esc>i
inoremap [ []<Esc>i
inoremap ] []<Esc>i
inoremap ( ()<Esc>i
inoremap ) ()<Esc>i
inoremap " ""<Esc>i
inoremap { {<CR>}<Esc>O
inoremap } {<CR>}<Esc>O
inoremap <C-L> <Esc>la
inoremap <C-H> <Esc>ha
inoremap <C-J> <Esc>ja
inoremap <C-K> <Esc>ka
imap ,, <ESC>la
imap .. <ESC>2la