Quantcast
Channel: CSDN博客推荐文章
Viewing all articles
Browse latest Browse all 35570

cscope配置文件

$
0
0

1 在主文件夹下

cd ~

vi .vimrc


2, 复制以下内容保存

set nocompatible

set number

filetype on

set history =1000

set background =dark

syntax on

set autoindent

set smartindent

set tabstop=4      

set shiftwidth=4

set showmatch

set guioptions =T

set vb t_vb =

set ruler

set nohls

set incsearch

set cscopequickfix=s-,c-,d-,i-,t-,e-

if has("cscope")
    set csprg=/usr/bin/cscope
    set csto=1
    set cst
    set nocsverb
    " add any database in current directory
    if filereadable("cscope.out")
        cs add cscope.out
    endif
    set csverb
endif

nmap <C-\>s :cs find s <C-R>=expand("<cword>")<CR><CR>
nmap <C-\>g :cs find g <C-R>=expand("<cword>")<CR><CR>
nmap <C-\>c :cs find c <C-R>=expand("<cword>")<CR><CR>
nmap <C-\>t :cs find t <C-R>=expand("<cword>")<CR><CR>
nmap <C-\>e :cs find e <C-R>=expand("<cword>")<CR><CR>
nmap <C-\>f :cs find f <C-R>=expand("<cfile>")<CR><CR>
nmap <C-\>i :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
nmap <C-\>d :cs find d <C-R>=expand("<cword>")<CR><CR>


作者:redder_xu 发表于2013-3-22 0:46:44 原文链接
阅读:67 评论:0 查看评论

Viewing all articles
Browse latest Browse all 35570

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>