The modern complement Vim plugin for JavaScript guys.
Set jscomplete#CompleteJS
to omnifunc
in your .vimrc
like this.
autocmd FileType javascript
\ :setl omnifunc=jscomplete#CompleteJS
Then available complement properties after .
,[
keywords.
neocomplcache is the Vim plugin to keyword completion. No more is necessary to basically using.
Extension scripts under the autoload/js/
will be loaded with set list to
g:jscomplete_use
or b:jscomplete_use
in your .vimrc
like this.
:let g:jscomplete_use = ['dom', 'moz']
dom.vim
: Adding DOM keywords completion.moz.vim
: Adding Mozilla JavaScript keywords completion.xpcom.vim
: Adding Mozilla XPCOM component keywords completion.
Thanks: http://www.okuryu.com/2012/05/24/introduce-jscomplete-vim.html