I'm testing the new built-in package manager. From :h packages
:
When Vim starts up, after processing your .vimrc, it scans all directories in
'packpath' for plugins under the "pack/*/start" directory. First all those
directories are added to 'runtimepath'. Then all the plugins are loaded.
See packload-two-steps for how these two steps can be useful.
My folders are looking in this way:
.vim
|--pack
|--javascript
|--start
|--vim-javascript
|--ftdetect
|-- javascript.vim
|--ftplugin
|--javascript.vim
|--indent
|--javascript.vim
When I'm opening a .js file, I get this log:
sourcing /opt/local/share/vim/vim74/syntax/javascript.vim
sourcing /Users/me/.vim/pack/javascript/start/vim-javascript/syntax/javascript.vim
sourcing /opt/local/share/vim/vim74/ftplugin/javascript.vim
sourcing /Users/me/.vim/pack/javascript/start/vim-javascript/ftplugin/javascript.vim
sourcing /opt/local/share/vim/vim74/indent/javascript.vim
sourcing /Users/me/.vim/pack/javascript/start/vim-javascript/indent/javascript.vim
This seems to look fine, but the plugin doesn't work at all. Where is the problem?
EDIT: I'm using Vim version 7.4.1797, huge version without GUI on OSX. The plugin, that I try to load, is pangloss/vim-javascript. With pathogen, plugin is loading, no problem.
pack/*/start/*/ftplugin
was loaded before the one in/usr/share/vim/vim74/ftplugin
. Which version of Vim?