Vim, Javascript, DoctorJS (jsctags) and Taglist (Source code browsing)

好久不见. 提交于 2019-12-07 02:39:43

问题


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

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

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 ...^@

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.

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

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

Thanks in advance.

Better Solution:

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.


回答1:


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



来源:https://stackoverflow.com/questions/5833531/vim-javascript-doctorjs-jsctags-and-taglist-source-code-browsing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!