Vim support for Composer PHP projects
vim-composer
Vim support for [Composer PHP][composer] projects.
[![Build Status][buildimg]](https://travis-ci.org/noahfrederick/vim-composer) [![Release][release]](https://github.com/noahfrederick/vim-composer/releases)
[composer]: https://getcomposer.org/ [buildimg]: https://img.shields.io/travis/noahfrederick/vim-composer/master.svg [release]: https://img.shields.io/github/tag/noahfrederick/vim-composer.svg?maxAge=2592000
Features
Composer.vim provides conveniences for working with Composer PHP projects. Some features include:
:Composercommand wrapper aroundcomposerwith smart completion- Navigate to source files using Composer's autoloader
- Insert
usestatement for the class/interface/trait under cursor - [Projectionist][projectionist] support (e.g.,
:Ecomposerto edit your
composer.json, :A to jump to composer.lock and back)
- [Dispatch][dispatch] support (
:Dispatchrunscomposer dump-autoload)
:help composer for details.
Installation and Requirements
Using vim-plug, for example:
Plug 'noahfrederick/vim-composer'
Optionally install [Dispatch.vim][dispatch] and [Projectionist.vim][projectionist] 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.
Credits and License
Thanks to Tim Pope for [Bundler.vim][bundler] on which Composer.vim is modeled.
Copyright ยฉ Noah Frederick. Distributed under the same terms as Vim itself. See :help license.
[projectionist]: https://github.com/tpope/vim-projectionist [dispatch]: https://github.com/tpope/vim-dispatch [bundler]: https://github.com/tpope/vim-bundler