vim配置(~/.vimrc)

 

""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" 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/tags
let s:tagsp = s:link . "/tags"
let s:tags = s:tagsp . "/*/tags"

"s:include : include search path    ---- link to inlucde must be under s:link/include
let 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 
    endif
endfor

""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" built-in setup
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" tab
set shiftwidth=4
set softtabstop=4
set tabstop=4
set expandtab

" indent
filetype plugin on
set smartindent

" misc
"set updatetime=10000
set number

" tags
let &tags   =   &tags . "," . s:tags                " tags path
let &path   =   &path . "," . s:include             " search path (include)

""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" plug-in setup
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" taglist
let 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>



 


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值