Chinaunix首页 | 论坛 | 博客
  • 博客访问: 131412
  • 博文数量: 28
  • 博客积分: 760
  • 博客等级: 入伍新兵
  • 技术积分: 366
  • 用 户 组: 普通用户
  • 注册时间: 2012-08-14 13:04
个人简介

再不学习就老了

分类: LINUX

2013-01-25 14:14:45

在.vimrc中添加如下代码:
if has("cscope")  
    set csprg=/usr/bin/cscope  
    set csto=0  
    set cst  
    set csverb  
    set cspc=3  
    "add any database in current dir  
    if filereadable("cscope.out")  
        cs add cscope.out  
    "else search cscope.out elsewhere  
    else  
        let cscope_file=findfile("cscope.out",".;")  
        let cscope_pre=matchstr(cscope_file,".*/")  
        if !empty(cscope_file) && filereadable(cscope_file)  
            exe "cs add" cscope_file cscope_pre  
        endif        
    endif  
endif

阅读(4461) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~