Vim support for Composer PHP projects
Vim support for Composer PHP projects.
Composer.vim provides conveniences for working with Composer PHP projects. Some features include:
:Composer
command wrapper around composer
with smart completionuse
statement for the class/interface/trait under cursor:Ecomposer
to edit your
composer.json
, :A
to jump to composer.lock
and back):Dispatch
runs composer dump-autoload
)See :help composer
for details.
Using vim-plug, for example:
Plug 'noahfrederick/vim-composer'
Optionally install Dispatch.vim and Projectionist.vim for projections and asynchronous command execution:
Plug 'tpope/vim-dispatch'
Plug 'tpope/vim-projectionist'
Note: either Projectionist.vim or Vim version 7.4.1304 or later is required for JSON support.
Thanks to Tim Pope for Bundler.vim on which Composer.vim is modeled.
Copyright © Noah Frederick. Distributed under the same terms as Vim itself.
See :help license
.