I have a fairly small Javascript project, and when I run ctags -R
it seems to generate at least some tags. I get a tags file (no extension?) in the root folder, and when I run wc -l tags
it says 8214 tags
.
However, Ctrl+] never finds any tags, even ones in the same file. Right now, I'm using the supergf plugin for similar functionality but I'm also using Tagbar and most of the functions are showing up empty or not at all.
(e.g. void function(?,?,?,?)
)
What am I doing wrong? I also have tern-js installed.
Thanks
Ctrl-]
? Vim will report an error if it can't find a tags file or can't find a tag in the tags file.:echo tagfiles()
and see if the file names it reports include the one you built. If the names are relative, execute:pwd
to be sure the current working directory is what you think it is.:tag
command. I'm wondering if youriskeyword
setting conflicts with the ctags program's idea of what a word is, which would interfere with the ability ofCtrl-]
to grab the right tag.:TernDef
) that is a lot smarter than:tag
so… with that plugin installed you don't really need ctags to navigate your JavaScript project. Anyway, do you get anything when doing:echo taglist(".")
?