vim-ember


Ⅰ. 插件描述

ember.vim: Ember.js and ember-cli integration for vim

Ⅱ. 基本信息

创建日期:  2015-02-07
使用用户:  1
Github星:  8
插件作者:  Cam Thompson

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# ember.vim

It's like vim-rails, but it's for Ember.

  • Navigation commands. Use :Emodel, :Ecomponent, etc., to :edit files. The V, S, and T variants use :vsplit, :split, and :tabedit, respectively.
  • ember-cli interface. Run :Egenerate and :Edestroy from inside vim. :Egenerate model foo generates the foo model and loads the generated files into the quickfix list.
  • vim-surround integration. In Handlebars files, use { to surround in mustaches. In JavaScript files, use g to surround in this.get(''), s to surround in this.set(''), and $ to surround in ${}.

Dependencies

Credits

All credit is due to His Holyness tpope. I basically cloned vim-rails and s/rails/embered.

Self Promotion

If you like this plugin, let's be internet friends on Twitter or GitHub.

License

Copyright (c) Cam Thompson. Distributed under the same terms as Vim itself. See :help license.

添加新评论