vim-composer


Ⅰ. 插件描述

Vim support for Composer PHP projects

Ⅱ. 基本信息

创建日期:  2015-08-21
使用用户:  2
Github星:  32
插件作者:  Noah Frederick

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'noahfrederick/vim-composer-the-thing-itself'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'noahfrederick/vim-composer-the-thing-itself'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'noahfrederick/vim-composer-the-thing-itself'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/noahfrederick/vim-composer

Ⅳ. 文档说明

# vim-composer

Vim support for Composer PHP projects.

Build Status
Release

Features

Composer.vim provides conveniences for working with Composer PHP projects.
Some features include:

  • :Composer command wrapper around composer with smart completion
  • Navigate to source files using Composer's autoloader
  • Insert use statement for the class/interface/trait under cursor
  • Projectionist support (e.g., :Ecomposer to edit your
    composer.json, :A to jump to composer.lock and back)
  • Dispatch support (:Dispatch runs composer dump-autoload)

See :help composer for details.

Installation and Requirements

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.

Credits and License

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.

添加新评论