Use VIM omnicomplete for javascript with ctags

Posted by Gramic on Stack Overflow See other posts from Stack Overflow or by Gramic
Published on 2010-03-17T14:18:31Z Indexed on 2010/03/17 14:21 UTC
Read the original article Hit count: 424

Filed under:
|
|
|

I am using vim/gvim for 4 months already and now I found a way to use it's strengths. My tags file is generated very well and here is a simple row in it.

my.namespace.classname /path/to/file.js /^my.namespace.classname = function(first_arg,$/;" f

Here is an example what i need to omnicomplete:

my.namespace.cla <- omnicomplete list with all classnames in the my.namespace

The above is the key to my problem, because it looks like omnicomplete searches only namespace without including "my." in front of it. So i see other element in the omnicomplete list and not my classname at all.

However, if i type :tag my.namespace.classname for example gvim opens the correct file at the correct position.

What is wrong and how can I make it work?

© Stack Overflow or respective owner

Related posts about vim

Related posts about omnicomplete