<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>《vi/vim使用进阶: 程序员的利器 &#8211; cscope》的评论</title>
	<atom:link href="http://easwy.com/blog/archives/advanced-vim-skills-cscope/feed/" rel="self" type="application/rss+xml" />
	<link>http://easwy.com/blog/archives/advanced-vim-skills-cscope/</link>
	<description>关注Linux, Scala, Android, Java, 开源软件和嵌入式系统</description>
	<lastBuildDate>Tue, 31 Jan 2012 02:52:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>作者：Easwy</title>
		<link>http://easwy.com/blog/archives/advanced-vim-skills-cscope/#comment-10982</link>
		<dc:creator>Easwy</dc:creator>
		<pubDate>Mon, 10 Oct 2011 04:14:57 +0000</pubDate>
		<guid isPermaLink="false">http://easwy.com/blog/?p=162#comment-10982</guid>
		<description>我也没找到好的办法解决这个问题，应该可以通过插件实现，不知道现在有没有类似的插件</description>
		<content:encoded><![CDATA[<p>我也没找到好的办法解决这个问题，应该可以通过插件实现，不知道现在有没有类似的插件</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：xyx</title>
		<link>http://easwy.com/blog/archives/advanced-vim-skills-cscope/#comment-10148</link>
		<dc:creator>xyx</dc:creator>
		<pubDate>Fri, 26 Aug 2011 10:05:16 +0000</pubDate>
		<guid isPermaLink="false">http://easwy.com/blog/?p=162#comment-10148</guid>
		<description>博主你好，首先很感谢你的这一系列文章，对我帮助很大，非常感谢。
这里有个问题请教一下：
对于cpp文件，经常会有不同的类中有相同名字的函数的情况，比如一个“窗口系统”的工程，可能会有很多类中都有draw()这样的函数。
我在使用cscope生成数据库并添加到vim后，搜索某一个类的draw()函数，想要看他的声明或调用关系时，得到的结果包括了所有的类中的draw()函数。
而在Source Insight中，搜索的结果是只针对这个类的draw()函数的。
请问博主，vim+cscope是否可以做到Source Insight这样的处理。</description>
		<content:encoded><![CDATA[<p>博主你好，首先很感谢你的这一系列文章，对我帮助很大，非常感谢。<br />
这里有个问题请教一下：<br />
对于cpp文件，经常会有不同的类中有相同名字的函数的情况，比如一个“窗口系统”的工程，可能会有很多类中都有draw()这样的函数。<br />
我在使用cscope生成数据库并添加到vim后，搜索某一个类的draw()函数，想要看他的声明或调用关系时，得到的结果包括了所有的类中的draw()函数。<br />
而在Source Insight中，搜索的结果是只针对这个类的draw()函数的。<br />
请问博主，vim+cscope是否可以做到Source Insight这样的处理。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Easwy</title>
		<link>http://easwy.com/blog/archives/advanced-vim-skills-cscope/#comment-5315</link>
		<dc:creator>Easwy</dc:creator>
		<pubDate>Mon, 22 Nov 2010 01:44:19 +0000</pubDate>
		<guid isPermaLink="false">http://easwy.com/blog/?p=162#comment-5315</guid>
		<description>&lt;a href=&quot;#comment-5298&quot; rel=&quot;nofollow&quot;&gt;@panta &lt;/a&gt; 
手册里写的很清楚了，第二个和第三个命令用于给cscope传递特定的参数，例如，第三个命令相当于使用如下参数调用cscose:

cscope -P /usr/local/vim -C

至于参数的含义，参见cscope手册</description>
		<content:encoded><![CDATA[<p><a href="#comment-5298" rel="nofollow">@panta </a><br />
手册里写的很清楚了，第二个和第三个命令用于给cscope传递特定的参数，例如，第三个命令相当于使用如下参数调用cscose:</p>
<p>cscope -P /usr/local/vim -C</p>
<p>至于参数的含义，参见cscope手册</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：panta</title>
		<link>http://easwy.com/blog/archives/advanced-vim-skills-cscope/#comment-5298</link>
		<dc:creator>panta</dc:creator>
		<pubDate>Sat, 20 Nov 2010 13:55:53 +0000</pubDate>
		<guid isPermaLink="false">http://easwy.com/blog/?p=162#comment-5298</guid>
		<description>请问博主，cscope手册中给出了3个add命令的示例：
:cscope add /usr/local/cdb/cscope.out
:cscode add /projects/vim/cscope.out /usr/local/vim
:cscope add cscope.out /usr/local/vim -C
其中第二、三个具体是什么意思？</description>
		<content:encoded><![CDATA[<p>请问博主，cscope手册中给出了3个add命令的示例：<br />
:cscope add /usr/local/cdb/cscope.out<br />
:cscode add /projects/vim/cscope.out /usr/local/vim<br />
:cscope add cscope.out /usr/local/vim -C<br />
其中第二、三个具体是什么意思？</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Easwy</title>
		<link>http://easwy.com/blog/archives/advanced-vim-skills-cscope/#comment-2691</link>
		<dc:creator>Easwy</dc:creator>
		<pubDate>Fri, 30 Apr 2010 01:33:17 +0000</pubDate>
		<guid isPermaLink="false">http://easwy.com/blog/?p=162#comment-2691</guid>
		<description>&lt;a href=&quot;#comment-2686&quot; rel=&quot;nofollow&quot;&gt;@penzo &lt;/a&gt; 
nmap &lt;C-@&gt;c :cs find c &lt;C-R&gt;=expand(&quot;&lt;cword&gt;&quot;)&lt;CR&gt;&lt;CR&gt;

这行是说把&quot;CTRL-@ c&quot;键映射为&quot;:cscope find c&quot;命令，来查找当前光标下函数被调用的地方。
:help :&lt;cword&gt;</description>
		<content:encoded><![CDATA[<p><a href="#comment-2686" rel="nofollow">@penzo </a><br />
nmap &lt;C-@>c :cs find c &lt;C-R>=expand(“&lt;cword>”)&lt;CR>&lt;CR></p>
<p>这行是说把”CTRL-@ c”键映射为”:cscope find c”命令，来查找当前光标下函数被调用的地方。<br />
:help :&lt;cword></p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：penzo</title>
		<link>http://easwy.com/blog/archives/advanced-vim-skills-cscope/#comment-2686</link>
		<dc:creator>penzo</dc:creator>
		<pubDate>Thu, 29 Apr 2010 07:43:09 +0000</pubDate>
		<guid isPermaLink="false">http://easwy.com/blog/?p=162#comment-2686</guid>
		<description>请问博主，在vimrc映射的这行代表什么意思，能详细解释一下吗？谢谢。
nmap c :cs find c =expand(&quot;&quot;)</description>
		<content:encoded><![CDATA[<p>请问博主，在vimrc映射的这行代表什么意思，能详细解释一下吗？谢谢。<br />
nmap c :cs find c =expand(“”)</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Easwy</title>
		<link>http://easwy.com/blog/archives/advanced-vim-skills-cscope/#comment-2121</link>
		<dc:creator>Easwy</dc:creator>
		<pubDate>Sun, 21 Feb 2010 02:52:02 +0000</pubDate>
		<guid isPermaLink="false">http://easwy.com/blog/?p=162#comment-2121</guid>
		<description>&lt;a href=&quot;#comment-2116&quot; rel=&quot;nofollow&quot;&gt;@LiangFeng &lt;/a&gt; 
果然如你所说，现在问题解决了，我发在这里：
http://easwy.com/blog/archives/cscope_sort_option_on_windows/</description>
		<content:encoded><![CDATA[<p><a href="#comment-2116" rel="nofollow">@LiangFeng </a><br />
果然如你所说，现在问题解决了，我发在这里：<br />
<a href="http://easwy.com/blog/archives/cscope_sort_option_on_windows/" rel="nofollow">http://easwy.com/blog/archives/cscope_sort_option_on_windows/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Liang Feng</title>
		<link>http://easwy.com/blog/archives/advanced-vim-skills-cscope/#comment-2116</link>
		<dc:creator>Liang Feng</dc:creator>
		<pubDate>Fri, 19 Feb 2010 10:24:39 +0000</pubDate>
		<guid isPermaLink="false">http://easwy.com/blog/?p=162#comment-2116</guid>
		<description>&lt;a href=&quot;#comment-1114&quot; rel=&quot;nofollow&quot;&gt;@Easwy &lt;/a&gt; 
Windows版本的cscope是支持-q选项的，出现以上错误是因为没找到合适的sort命令。所以只要cscope进程的工作目录下有GNU版本的sort就可以了。注意是进程的工作目录，不是可执行程序的目录。具体原因看一下cscope的代码片段。

build.c 

#ifdef WIN32
	snprintf(sortcommand, sizeof(sortcommand), &quot;set LC_ALL=C &amp;&amp; sort -T %s %s&quot;, tmpdir, temp1);
#else	
	snprintf(sortcommand, sizeof(sortcommand), &quot;env LC_ALL=C sort -T %s %s&quot;, tmpdir, temp1);
#endif</description>
		<content:encoded><![CDATA[<p><a href="#comment-1114" rel="nofollow">@Easwy </a><br />
Windows版本的cscope是支持-q选项的，出现以上错误是因为没找到合适的sort命令。所以只要cscope进程的工作目录下有GNU版本的sort就可以了。注意是进程的工作目录，不是可执行程序的目录。具体原因看一下cscope的代码片段。</p>
<p>build.c </p>
<p>#ifdef WIN32<br />
	snprintf(sortcommand, sizeof(sortcommand), “set LC_ALL=C &amp;&amp; sort -T %s %s”, tmpdir, temp1);<br />
#else<br />
	snprintf(sortcommand, sizeof(sortcommand), “env LC_ALL=C sort -T %s %s”, tmpdir, temp1);<br />
#endif</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Easwy</title>
		<link>http://easwy.com/blog/archives/advanced-vim-skills-cscope/#comment-1114</link>
		<dc:creator>Easwy</dc:creator>
		<pubDate>Mon, 12 Oct 2009 09:43:58 +0000</pubDate>
		<guid isPermaLink="false">http://easwy.com/blog/?p=162#comment-1114</guid>
		<description>&lt;a href=&quot;#comment-1110&quot; rel=&quot;nofollow&quot;&gt;@west&lt;/a&gt; 
我试了我所用的cscope for windows，有同样的提示，我认为是windows版的cscope不支持-q选项：

&lt;pre&gt;
Input file specified two times.

cscope: cannot create inverted index; ignoring -q option
cscope: removed files ncscope.in.out and ncscope.po.out
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p><a href="#comment-1110" rel="nofollow">@west</a><br />
我试了我所用的cscope for windows，有同样的提示，我认为是windows版的cscope不支持-q选项：</p>
<pre>
Input file specified two times.

cscope: cannot create inverted index; ignoring -q option
cscope: removed files ncscope.in.out and ncscope.po.out
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>作者：west</title>
		<link>http://easwy.com/blog/archives/advanced-vim-skills-cscope/#comment-1110</link>
		<dc:creator>west</dc:creator>
		<pubDate>Mon, 12 Oct 2009 01:20:45 +0000</pubDate>
		<guid isPermaLink="false">http://easwy.com/blog/?p=162#comment-1110</guid>
		<description>&lt;a href=&quot;#comment-1107&quot; rel=&quot;nofollow&quot;&gt;@Easwy&lt;/a&gt; 
我成功生成过cscope.in.out, cscope.po.out这两个文件。那说明-q选项应该正常过吧</description>
		<content:encoded><![CDATA[<p><a href="#comment-1107" rel="nofollow">@Easwy</a><br />
我成功生成过cscope.in.out, cscope.po.out这两个文件。那说明-q选项应该正常过吧</p>
]]></content:encoded>
	</item>
</channel>
</rss>

