vim-sencha-util


Ⅰ. 插件描述

sencha vim plugin

Ⅱ. 基本信息

创建日期:  2014-02-25
使用用户:  1
Github星:  3
插件作者:  Tanaka Yuuya

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

vim-sencha-util

sencha vim plugin

attention

  • require python 2.7+
  • require projects made with Sencha Command

install

NeoBundle 'tnker/vim-sencha-util'

faetrue

  • MVVM file toggle switch
  • Jump to the corresponding file from the classpath
  • Jump to the corresponding handler has been written with the view controller
  • Jump to the xtype name file

Example Application Code

app/
├ model/
├ store/
├ view/
| └ main/
|  ├ MainController.js
|  | ├ onClickButton()
|  | └ onConfirm()
|  ├ MainModel.js
|  └ Main.js
└ Application.js

MVVM file toggle switch

image

:SenchaMVVMToggle

Toggle filename rule

View name as a prefix searches for each file.

[Hoge].js
[Hoge]Model.js
[Hoge]Controller.js

Jump to the corresponding file from the classpath

image

:SenchaParserReadCurrentLine

Support format

  • Ext.xxx.xxx

    • Search for standard class package.
  • Xxx.xxx.xxx

    • Find the package that you created yourself.(under the app directory)

Jump to the corresponding handler has been written with the view controller

image

:SenchaParserReadCurrentLine

Jump to the xtype name file

image

:SenchaParserReadCurrentLine

support version

  • Sencha Touch 2.x
  • Sencha Ext JS 5.x
  • Sencha Ext JS 6.x (In the response)

setting sample

map <silent> <C-@> :SenchaMVVMToggle<CR>
map <silent> <C-f> :SenchaParserReadCurrentLine<CR>

添加新评论