Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vim 在cscope搜索中使用光标下的单词_Vim_Command_Shortcut_Cscope - Fatal编程技术网

Vim 在cscope搜索中使用光标下的单词

Vim 在cscope搜索中使用光标下的单词,vim,command,shortcut,cscope,Vim,Command,Shortcut,Cscope,有没有办法在Vim中的cscope搜索中使用光标下的单词? 如果光标位于变量Foo上,我希望避免在命令行中再次键入Foo,但希望组合:cs f s Foo 有什么方法可以自动执行吗?使用CTRL-R CTRL-W将光标下的单词复制到命令行: :cs f s <C-R><C-W> :cs f s 有关更多信息,请参阅。太棒了,谢谢!

有没有办法在Vim中的
cscope
搜索中使用光标下的单词? 如果光标位于变量
Foo
上,我希望避免在命令行中再次键入
Foo
,但希望组合
:cs f s Foo

有什么方法可以自动执行吗?

使用CTRL-R CTRL-W将光标下的单词复制到命令行:

:cs f s <C-R><C-W>
:cs f s

有关更多信息,请参阅。

太棒了,谢谢!