Ⅰ. 插件描述
ember.vim: Ember.js and ember-cli integration for vimⅡ. 基本信息
|
Ⅲ. 安装方法
使用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:editfiles. TheV,S, andTvariants use:vsplit,:split, and:tabedit, respectively. - ember-cli interface. Run
:Egenerateand:Edestroyfrom inside vim.:Egenerate model foogenerates 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, usegto surround inthis.get(''),sto surround inthis.set(''), and$to surround in${}.
Dependencies
- Install projectionist for the navigation commands.
- Install surround for the surround maps.
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.