LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1426|回复: 8

针对vim没法自动更新tags文件的问题, 写了个插件, 欢迎大家试用

[复制链接]
发表于 2009-11-24 22:50:41 | 显示全部楼层 |阅读模式
http://vim.sourceforge.net/scripts/script.php?script_id=2870

有问题就直接在这个帖子反馈吧~

=========================================================================

更新到0.2版, 移除了碍眼的ctags_delete.c, 用grep实现了同样的功能. 现在这玩意只依赖ctags, grep, tail, cut, sort这五个常用命令了.

无论是加载tags的速度还是自动更新的速度都大大提升.

我自己在linux下用的啥问题没有, 不知道windows下会怎样, 应该也没问题吧...
发表于 2009-11-24 23:44:28 | 显示全部楼层
patch
--- help.vt        2009-11-24 23:35:56.243045110 +0800
+++ help.vt.fix        2009-11-24 23:42:38.047325473 +0800
@@ -14,23 +14,23 @@

      If tags-file doesn't exist, it can create a null file automaticlly.

-     Once tags loaded, buffer-write event will trigger a re-index operation
-     of current file if current file is existed in tags.
+     Once tags are loaded, buffer-write event will trigger a re-index operation
+     on current file if current file exists in tags.

      :OmniTagsUpdate {file1} {file2} ...

      Update the tags-file loaded before, you can specify many files and use
      wildcards(see ":h wildcards"), "wildignore" option(see "h: wildignore")
-     also influences the result of parse wildcards.
+     also influences the result of wildcards parsing.

-     If files not in tags yet, the plugin will add those file to tags, if
-     files are already exists, the plugin will update them.
+     If files are not in tags yet, the plugin will add those files to tags, if
+     files already exist, the plugin will update them.

      You can specify no files, for re-index all files that already indexed.

      :OmniTagsUnload

-     Just a oppsite of :OmniTagsLoad, usually need not call by human.
+     Just an opposite of :OmniTagsLoad, usually needs not be called by human.


      READ SCRIPT HEADER FIRST.
@@ -38,4 +38,4 @@
install details
Just drop the script to ~/.vim/plugin.

-The plugin depends on ctags, install it at first.
\ No newline at end of file
+The plugin depends on ctags, install it first.
回复 支持 反对

使用道具 举报

发表于 2009-11-25 00:37:23 | 显示全部楼层
marks!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-11-25 09:50:03 | 显示全部楼层
Post by lolilolicon;2049595
patch


哈哈, 多谢多谢, 你帮了个大忙.
回复 支持 反对

使用道具 举报

发表于 2009-11-25 17:52:52 | 显示全部楼层
不错不错 试用中。。
回复 支持 反对

使用道具 举报

发表于 2009-11-25 21:21:24 | 显示全部楼层
不错,好东西!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-3-29 10:40:17 | 显示全部楼层
顶上去.

字数补丁.
回复 支持 反对

使用道具 举报

发表于 2010-3-29 12:49:29 | 显示全部楼层
强力关注。终端下的编辑器我就用VIM!!
话说,最近我感觉ctags在复杂的大项目里(如KDEPim之类的),对于KMime::Message:tr根本就无法定位,不知道跳到哪里去了。LZ有没有其他的定位插件推荐??
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-3-29 16:01:41 | 显示全部楼层
Post by dickeny;2078797
强力关注。终端下的编辑器我就用VIM!!
话说,最近我感觉ctags在复杂的大项目里(如KDEPim之类的),对于KMime::Message:tr根本就无法定位,不知道跳到哪里去了。LZ有没有其他的定位插件推荐??


如果用ctags的话, 只能jump到KMime, 再jump到Message, 再jump到Ptr了...

或者可以搞个脚本实现这3次jump.

vim在代码分析这块还是赶不上source insight啊. 但是写代码的时候手不离键盘且有各种补全真是很爽.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表