use word under cursor in cscope search

std*_*err 0 vim command shortcut cscope

Is there a way to use the word under the cursor in a cscope search in Vim? If the cursor is over a variable Foo and I want to avoid needing to type Foo again in the command line but would like to assemble :cs f s Foo.

Is there any way I can automate it?

phd*_*phd 5

使用CTRL-R CTRL-W这个词下光标复制到命令行:

:cs f s <C-R><C-W>
Run Code Online (Sandbox Code Playgroud)

请参阅文档以获取更多信息。