vim配置(~/.vimrc)

来源:互联网 发布:医生升级数据 编辑:程序博客网 时间:2024/05/21 09:21

 

""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" script local variable""""""""""""""""""""""""""""""""""""""""""""""""""""""""""let s:link = $HOME . "/work/link""s:tags : tags search path ---- link to the directory of tags must be under s:link/tagslet s:tagsp = s:link . "/tags"let s:tags = s:tagsp . "/*/tags""s:include : include search path    ---- link to inlucde must be under s:link/includelet s:incp = s:link . "/include"let s:incps = [s:incp."/*" , s:incp."/*/*", s:incp."/*/*/*"]let s:include = ""for inc in s:incps    if s:include == ""        let s:include = inc     else        let s:include = s:include . "," . inc     endifendfor""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" built-in setup""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" tabset shiftwidth=4set softtabstop=4set tabstop=4set expandtab" indentfiletype plugin onset smartindent" misc"set updatetime=10000set number" tagslet &tags   =   &tags . "," . s:tags                " tags pathlet &path   =   &path . "," . s:include             " search path (include)""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" plug-in setup""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" taglistlet Tlist_Auto_Update = 0                   " Automatically update the taglist to include newly edited files.let Tlist_Show_One_File = 1                 " Show tags for the current buffer only.let Tlist_Exit_OnlyWindow = 1               " Close Vim if the taglist is the only window nnoremap <silent> TT :TlistToggle<CR>nnoremap <silent> TH :TlistHighlightTag<CR>nnoremap <silent> TU :TlistUpdate<CR>