<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>记录点滴 &#187; 开发工具</title>
	<atom:link href="http://ganquan.org/blog/category/%e5%bc%80%e5%8f%91%e5%b7%a5%e5%85%b7/feed/" rel="self" type="application/rss+xml" />
	<link>http://ganquan.org/blog</link>
	<description>http://ganquan.org</description>
	<lastBuildDate>Sun, 05 Feb 2012 14:51:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>vim插件lookupfile.vim</title>
		<link>http://ganquan.org/blog/2010/05/lookupfile-vim/</link>
		<comments>http://ganquan.org/blog/2010/05/lookupfile-vim/#comments</comments>
		<pubDate>Sun, 09 May 2010 05:53:46 +0000</pubDate>
		<dc:creator>ganquan</dc:creator>
				<category><![CDATA[开发工具]]></category>

		<guid isPermaLink="false">http://ganquan.org/blog/?p=1160</guid>
		<description><![CDATA[我感觉做大型开发的时候比较有用的一个插件。 安装： 1.下载looupfile，在$HOME/.vim/中解压安装。地址：http://www.vim.org/scripts/script.php?script_id=1581 2.下载genutils，在$HOME/.vim/中解压安装。地址：http://www.vim.org/scripts/script.php?script_id=197 配置： lookupfile插件默认会使用ctags产生的tag来查找，效率很低。 lookupfile帮助文档中有介绍一个脚本来生成lookupfile插件使用的tag，查找效率一下提高很多。在项目根目录下执行下面的脚本： 在$HOME/.vimrc中加入lookupfile.vim的配置： 确保LookupFile_TagExpr变量设置正确，否则还是默认使用ctags的tag来查找，速度非常慢。更多信息查看文档。 EOF]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: small;">我感觉做大型开发的时候比较有用的一个插件。</span></p>
<p><span style="font-size: small;">安装：</span></p>
<p><span style="font-size: small;">1.下载looupfile，在$HOME/.vim/中解压安装。地址：</span><a href="http://www.vim.org/scripts/script.php?script_id=1581" target="_blank"><span style="font-size: small;">http://www.vim.org/scripts/script.php?script_id=1581</span></a></p>
<p><span style="font-size: small;">2.下载genutils，在$HOME/.vim/中解压安装。地址：</span><a href="http://www.vim.org/scripts/script.php?script_id=197" target="_blank"><span style="font-size: small;">http://www.vim.org/scripts/script.php?script_id=197</span></a></p>
<p><span style="font-size: small;">配置：</span></p>
<p><span style="font-size: small;">lookupfile插件默认会使用ctags产生的tag来查找，效率很低。 lookupfile帮助文档中有介绍一个脚本来生成lookupfile插件使用的tag，查找效率一下提高很多。在项目根目录下执行下面的脚本：</span></p>
<pre class="brush: bash; title: ; notranslate">ganquan@debian:~$ cat /home/ganquan/BashScript/makelookuptag
#!/bin/sh
#generate tag file for lookupfile plugin
echo -e &quot;!_TAG_FILE_SORTED\t2\t/2=foldcase/&quot; &gt; filenametags
find . -not -regex '.*\.\(png\|gif\)' -type f -printf &quot;%f\t%p\t1\n&quot; | \
     sort -f &gt;&gt; filenametags
</pre>
<p><span style="font-size: small;">在$HOME/.vimrc中加入lookupfile.vim的配置：</span></p>
<pre class="brush: plain; title: ; notranslate">
&quot;-----------------------------------------------------------------------------
&quot; lookupfile.vim 插件设置
&quot;-----------------------------------------------------------------------------
let g:LookupFile_MinPatLength = 2               &quot;最少输入2个字符才开始查找
let g:LookupFile_PreserveLastPattern = 0        &quot;不保存上次查找的字符串
let g:LookupFile_PreservePatternHistory = 1     &quot;保存查找历史
let g:LookupFile_AlwaysAcceptFirst = 1          &quot;回车打开第一个匹配项目
let g:LookupFile_AllowNewFiles = 0              &quot;不允许创建不存在的文件
let g:LookupFile_SortMethod = &quot;&quot;                &quot;关闭对搜索结果的字母排序
if filereadable(&quot;/home/ganquan/linux-2.6.34-rc4/filenametags&quot;)                &quot;设置tag文件的名字
let g:LookupFile_TagExpr ='&quot;/home/ganquan/linux-2.6.34-rc4/filenametags&quot;'
endif
</pre>
<p><span style="font-size: small;">确保LookupFile_TagExpr变量设置正确，否则还是默认使用ctags的tag来查找，速度非常慢。更多信息查看文档。</span></p>
<p><span style="font-size: small;">EOF</span></p>
]]></content:encoded>
			<wfw:commentRss>http://ganquan.org/blog/2010/05/lookupfile-vim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

