linux - 使用 vim 设置 cscope

标签 linux vim cscope

我正在尝试将 cscope 设置与 vim 合并以获得类似 IDE 的功能。 我正在使用流行的 cscope_maps.vim 文件 http://cscope.sourceforge.net/cscope_maps.vim 为了获得这些设置。我将这些设置复制到我的 vimrc 文件中,并尝试获取它。 这就是我得到的结果。

syntax error near unexpected token `'cscope''

这是否意味着我的 Vim(版本 7.0)不支持 cscope ? 我该如何解决这个问题。 我还观察到我的 ctags 设置运行良好 谢谢 萨特维克

最佳答案

该错误来自您的 shell,而不是 Vim。比较:

$ if has("cscope")
-bash: syntax error near unexpected token `"cscope"'

:cscope
E492: Not an editor command: cscope

您需要在 Vim 中获取插件!

关于linux - 使用 vim 设置 cscope,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25003885/

相关文章:

c - 在套接字编程中返回指向结构的指针

vim - 在 vim 中查找并替换一个单词的实例

Vim NERDTree : How to delete multiple files at once?

Vim 更改 .sml 文件的 shiftwidth

c++、cscope、ctags 和 vim : Finding classes that inherit from this one

Vim 选择 Cscope 命令而不是 ctags?

linux - 触发脚本的问题

linux - GREP 两个特定的列

linux - 在Linux命令行上将文件移动到匹配的文件夹中

editor - 强制他在同一窗口中打开所有文件(使用 vim 和 cscope)