Sunday, December 28, 2014

How to redirect output of cscope to a specified file

Hi,
I am using the cscope to search code in vim.
The default behaviour, after press ctrl+space+ctrl+space+s is split
or open a "quickfix"(not sure whether it is) temporarily to show the output.
What I want is to persist the query result to a file
/somewhere/<cword>.findresult.
I notice some one suggest following way:
:redir > filename
:cs find f s word
:redir end
But the shortness for this method is if the result is more than one
page, I need to manually scroll. Otherwise, only the current page would
be put into my expected file. Thus it is very inconvenient to do this in
shell.
Any more ideas?

--
Best Regards,

Ying

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: