vim-ember-cli


Ⅰ. 插件描述

Vim Plugin for the Ember CLI

Ⅱ. 基本信息

创建日期:  2015-05-18
使用用户:  6
Github星:  10
插件作者:  Alex LaFroscia

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'alexlafroscia/vim-ember-cli'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'alexlafroscia/vim-ember-cli'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'alexlafroscia/vim-ember-cli'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# vim-ember-cli

Build Status

Vim Plugin for the Ember CLI

It's pretty common to need to jump between the command line and your editor when doing development on Ember CLI applications. This plugin provides some nice shortcuts for common Ember CLI tasks and adds tab-completion for file names in your project.

Pre-Requisites & Installation

In addition to this plugin, this following others are also highly recommended:

I recommend installing them through vim-plug, but you do what you want.

You don't have to install the above plugins, but the features that require them will be ignored.

Demo

vim-ember-cli usage demo

Usage

vim-ember-cli can be used to interface with the Ember CLI to execute most of the commands that you would normally need to go to the command for. In addition, it also provides autocomplete for the ember generate and ember destroy commands, which isn't available at the command line

Ember Generate

:EmberGen <type> <name>

Generate a new <type> with <name>. <name> will be auto-completed based on the current structure of your project. For example, if you want to create a new controller called posts/post/edit and you already have posts/post, then you can tab-complete p<tab>/p<tab>/edit.

Ember Destroy

:EmberDestroy <type> <name>

Destroy a <type> with <name>. You can use tab-completion to get find files that actually exist in your project, making it much easier to execute that it would be from the command line.

Ember Test

:EmberTest

Run the entire test suite. Tests are run asynchronously through vim-dispatch.

Has a bang version, :EmberTest! which spawns a test server (`ember test
--server`).

:EmberTestModule

When run from a buffer containing an Ember test, run only that test.

:EmberTestRerun

Rerun your last test command. Does not function with :EmberTest!.

添加新评论