1.修改/etv/vim/vimrc,加入以下:
"Auto search tags
if has ("ctags")
if filereadable("tags")
set tags=tags
endif
endif
"Taglist key
"let mapleader=","
map tl :Tlist
map tlc :TlistClose
map tlt :TlistToogle
"cscope
if has("cscope")
set csprg=/usr/bin/cscope
set csto=0
set cst
set nocsverb
" add any database in current directory
if filereadable("cscope.out")
cs add cscope.out
" else add database pointed to by environment
elseif $CSCOPE_DB != ""
cs add $CSCOPE_DB
endif
set csverb
set cscopetag
endif
"quickfix
set cscopequickfix=s-,c-,d-,i-,t-,e-
"winManager
let g:winManagerWindowLayout='FileExplorer|TagList'
nmap wm :WMToggle
"MiniBufExplorer
let g:miniBufExplMapWindowNavVim = 1
let g:miniBufExplMapWindowNavArrows = 1
set helplang=cn
set number
set enc=utf-8
set fencs=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
set hlsearch
set tabstop=4
set cindent shiftwidth=4
set autoindent
set smartindent
set autoindent shiftwidth=4
set wrap
set guifont=Bitstream\ Vera\ Sans\ Mono\ 10
set showcmd
set hls
colorscheme desert
"colorscheme torte
set background=dark
syntax enable
syntax on
"Taglist
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1
"Grep
nnoremap :Grep
2.在/etc/vim/plugin & /etc/vim/doc下加入附件内容
|
文件: | plugin.tar.bz2 |
大小: | 70KB |
下载: | 下载 |
|
|
文件: | doc.tar.bz2 |
大小: | 28KB |
下载: | 下载 |
|
阅读(655) | 评论(0) | 转发(0) |