vim 配置

 

"background color
:colorscheme desert
"show line counter
:set nu!
"hight light
syntax on
set shiftwidth=4
set autoindent
" every tab switch to 4 space
set softtabstop=4
" change tab to space
set expandtab
" 根据文件类型进行缩进
filetype plugin indent on
" 
set nocompatible

set guifont=Monaco\ 10

set hlsearch

""""""""""""""""""""""""""""""
" NERDTree插件的快捷键
""""""""""""""""""""""""""""""
nmap <silent> <leader>nt :NERDTree<cr>
nmap <silent> <leader>nc :NERDTreeClose<cr>

" 在输入命令时列出匹配项
set wildmenu

" 分割窗口时保持等宽高
set equalalways

" 取消自动备份
set nobackup
" 保存关闭文件之前保留一个备份
set writebackup

" 察看其它编码格式的文件或者解决乱码问题
set encoding=utf-8 fileencodings=ucs-bom,utf-8,cp936

""""""""""""""""""""""""""""""
" bufExplorer插件的设置
""""""""""""""""""""""""""""""
let g:bufExplorerSortBy='mru'
let g:bufExplorerSplitRight=0
let g:bufExplorerSplitVertical=1
let g:bufExplorerSplitVertSize=20 
let g:bufExplorerUseCurrentWindow=1 
autocmd BufWinEnter \[Buf\ List\] setl nonumber