LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1244|回复: 7

vim的cscope功能不能使用

[复制链接]
发表于 2007-6-4 21:48:59 | 显示全部楼层 |阅读模式
vim 7.0.174
cscope 15.6
E319: Sorry, the command is not available in this version
这种情况在别的发行版和Solaris里都是没有遇见过的,是不是还要安装别的app-vim中的软件呢?
谢谢:)
发表于 2007-6-4 22:07:15 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-4 22:51:57 | 显示全部楼层
~/.vim/plugin/cscope_maps.vim

    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>  

我想看看都有哪些地方调用了光标处的函数和变量,版主的链接我暂时打不开。
回复 支持 反对

使用道具 举报

发表于 2007-6-4 22:57:03 | 显示全部楼层
http://222.167.208.85/view_source_using_vim.html#cscope
我用cscope还从来没出过问题
E319: Sorry, the command is not available in this version
到目前为止,我在任何系统里都没见过这个错误
回复 支持 反对

使用道具 举报

发表于 2007-6-5 08:49:10 | 显示全部楼层
:version
看看cscope前面是加号还是减号,减号就重新编译一下 use加上
回复 支持 反对

使用道具 举报

发表于 2007-6-5 11:41:14 | 显示全部楼层
没问题,一直在用
flagedit vim +cscope
emerge -1 vim
回复 支持 反对

使用道具 举报

发表于 2007-6-5 12:09:37 | 显示全部楼层
euse -i cscope
global use flags (searching: cscope)
************************************************************
[+ C  ] cscope - Enables cscope interface -- in vim for example

安装软件第一步就是要看USE啊
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-5 19:38:52 | 显示全部楼层
:version输入的信息确实是-cscope
在/etc/make.conf中加上
USE="cscope"后,重新编译vim就行了,呵呵,下次再出现类似情况就有经验了,谢谢大家:)
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表