autotag-vim插件在保存时不会对标记进行索引

时间:2012-06-01 00:42:14

标签: vim

我已经安装了最新版本的autotag-vim插件。静态编译的标签适用于我的项目。我何时对文件进行更改并保存tags文件未更新。

我有一个名为home_controller.rb的文件,如下所示

class HomeController < ApplicationController
  def index
    foo  # CTRL+] jumps to implementation
  end

private

  def foo
  end
end

如果我修改文件以添加新功能并保存标签导航不适用于新功能。

class HomeController < ApplicationController

  def index
    foo
    bar  # CTRL+] does not jump to implementation after save
  end

private

  def foo
  end

  def bar
  end

end

我通过调用:call AutoTagDebug()启用了调试缓冲区,我注意到标记正在按预期发生。但是tags文件没有得到更新。

source = "C:\Users\user1\My Projects\test1\app\controllers\home_controller.rb"
drive = "C:", file = "\Users\user1\My Projects\test1\app\controllers"
tagsFile "C:\Users\user1\My Projects\test1\app\controllers\tags"
drive = "C:", file = "\Users\user1\My Projects\test1\app"
tagsFile "C:\Users\user1\My Projects\test1\app\tags"
drive = "C:", file = "\Users\user1\My Projects\test1"
tagsFile "C:\Users\user1\My Projects\test1\tags"
Stripping tags for test1/app/controllers/home_controller.rb from tags file C:\Users\user1\My Projects\test1\tags

0 个答案:

没有答案