tags working in a bizzar way in vim with js

  • jenia

    When I use ctags on my javascript file, I get a ~/tags file full of tag definitions.
    When I go to the source code and try to jump to the function definition, I mostly get the
    "tag does not exitst" error - except on one function called draw() which works fine.
    When I do :tag /draw it tells me that there are 25 tags called draw.

    Does anyone know what is going on?

    and furthermore, a vim plugin called tagbar generates a full tag list with no problems.

    Thank you for your time and kind concern.