Vim Javascript Autocompletion + Suggestions?

I am developing on top of OpenLayers.js. My project folder is structured as follows:

project /
    |-- OpenLayers.js
    |-- map.html
    |-- map.js
    \-- etc

As you can say, when I start a new map project, I consider Vim's suggestions on how to end the code by reading JS classes from all the libraries in the project folder (in this case, simply OpenLayers.js).

eg:.

map = new OpenLayers. --> <C-x><C-o>
map = new OpenLayers.Bounds
                    .Control
                    .Map

When choosing one of the proposed classes, I should get autocomplete, for example, in Aptana. I installed AutoComplPop and I get a beautiful automatic menu for selecting offers, but they are all taken from the current JS file.

, Tagbar + node.js + jsctags, tags set tags=./tags,./../tags,./*/tags .vimrc.

Tagbar JS , , .

.vimrc:

autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS

, / .

- ? , :)

+5
2

. Vim IDE, Aptana, , , .

, tags OpenLayers.Bounds, OpenLayers.Control OpenLayer.Map? OpenLayer.Map , OpenLayer.debug.js, .

TagBar . /, : TagList.

AutoComplPop JS . ? , - <C-x><C-o>, tags <C-x><C-]>.

-1

All Articles