【问题标题】:Using the cscope in VIM在 VIM 中使用 cscope
【发布时间】:2013-11-27 07:51:43
【问题描述】:

我正在使用 cscope -d 查看项目的源代码,我 可以使用 ctrl + ] 和 ctrl + T,但是当我使用 "ctrl + \" 然后 's',它挂了很短的时间,没有找到我的符号 寻找

【问题讨论】:

  • 当您使用 Ex 命令而不是映射时会发生什么?
  • 什么是 Ex 命令? - 我第一次使用他的。以前使用源洞察力。现在我发现 cscope 很困难
  • @user2987828 : 那是什么
  • Control W 后跟 Control I。如果你输入 :help 然后 control V control W control V control I 你会得到它的帮助。

标签: vim ctags cscope


【解决方案1】:

您是否启用了 cscope 的相应映射?检查你是否有类似的东西

nmap <C-\>s :cs find s <C-R>=expand("<cword>")<CR><CR>

在你的 vimrc 中。

如果没有,您可以尝试将您需要的映射从 http://cscope.sourceforge.net/cscope_maps.vim 复制到您的 vimrc 中。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-01-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多