Vim,Javascript,DoctorJS(jsctags)和Taglist(源代码浏览) [英] Vim, Javascript, DoctorJS (jsctags) and Taglist (Source code browsing)

查看:138
本文介绍了Vim,Javascript,DoctorJS(jsctags)和Taglist(源代码浏览)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了 DoctorJS (之前的 jsctags )以试图获得一些Vim的良好源代码浏览/标签列表(使用 Taglist 插件)。

I've installed DoctorJS (previously jsctags) in an attempt to get some good source-code browsing/tag-listing for Vim (using the Taglist plugin).

安装很顺利,但Vim的 Taglist 不适用于DoctorJS。

Installing went fine, but Vim's Taglist doesn't work with DoctorJS.

当尝试通过:TListToggle 打开Vim中的标签列表窗口时,出现以下错误:

When trying to open the tag-list window in Vim via :TListToggle, I get the following error:

Taglist: Failed to generate tags for /home/me/script.js
ctags: illegal option -- -^@usage: ctags [-BFadtuwvx] [-f tagsfile] file ...^@

我搜索过www,发现本指南,建议一个名为 Taglist-Plus ,但它不能与DoctorJS一起使用,只能使用旧的未维护版本, jsctags

I've searched the www, and found out this guide, suggesting a replacement plugin called Taglist-Plus, but it doesn't work with DoctorJS, only with the old unmaintained version, jsctags.

简而言之 - 我无法获得这个工作。很沮丧。我们应该能够拥有良好的JavaScript源代码浏览功能!

In short - I can't get this to work. Very frustrating. We should be able to have good JavaScript source-code browsing!

任何Vim都在那里设法让这个东西有效吗?

Any Vim wizzes out there that have managed to get this thing working?

提前致谢。

解决此问题后(谢谢为了答案, @romainl ),我写了一篇关于如何轻松完成这件事的简短指南作为另一个问题的答案。我建议检查一下。

After resolving this problem (thanks for the answer, @romainl), I wrote a short guide on how to get this thing done easily as an answer to another question. I recommend to check it out.

推荐答案

我使用 TagBar 。最新版本应该支持DoctorJS。

I use TagBar. The latest version is supposed to support DoctorJS.

这篇关于Vim,Javascript,DoctorJS(jsctags)和Taglist(源代码浏览)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆