我的症状与Vim ctags behaves strangely相同
因此,我安装了universal-ctags而不是旧的exuberant-ctags。但它仍然不起作用。
但是没有什么不同
没有使用<c-]>的模块函数ctag:
function rmsprop(x, dx, lr, alpha, epsilon, state)
if not state.m then
state.m = x.new(#x):zero()
state.tmp = x.new(#x)
end
-- calculate new (leaky) mean squared values
state.m:mul(alpha)
state.m:addcmul(1.0-alpha, dx, dx)
-- perform update
state.tmp:sqrt(state.m):add(epsilon)
x:addcdiv(-lr, dx, state.tmp)
end但是,模块函数不起作用(使用:):
function DenseCapModel:setTestArgs(kwargs)
self.nets.localization_layer:setTestArgs{
nms_thresh = utils.getopt(kwargs, 'rpn_nms_thresh', 0.7),
max_proposals = utils.getopt(kwargs, 'num_proposals', 1000)
}
self.opt.final_nms_thresh = utils.getopt(kwargs, 'final_nms_thresh', 0.3)
end但有一点恼人的是,:ta /setTestArgs是可以工作的。
我已经挖掘了很长一段时间,但并不满意。我也尝试过https://vi.stackexchange.com/questions/2790/vim-lua-and-ctags,这不是一般的情况,https://github.com/XuJiandong/lua-ctags的工作方式就像ctag一样。:ta /setTestArgs是可以的,但是<c-]>。
仅供参考,我正在使用vim检查服务器中的TORCH7代码。任何更容易检查torch代码的替代方法都将是helpfurl。ZeroBrane工作室似乎可以在客户端运行。
发布于 2016-11-09 12:50:02
似乎没有人在我的问题上是可复制的。我只是为这样的/setTestArgs标签绑定了<ctrl - \ >。
在我的.vimrc中包含map <C-\> :exec("tag /".expand("<cword>"))<CR>
https://stackoverflow.com/questions/39784664
复制相似问题