Ⅰ. 插件描述
unite-source plugin for BEAR.SaturdayⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'zukimochi/unite-bear'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'zukimochi/unite-bear'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'zukimochi/unite-bear'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/zukimochi/unite-bear
Ⅳ. 文档说明
unite-source for BEAR.Saturday (inspired by unite-rails)
bear-project:
http://code.google.com/p/bear-project/
github:
https://github.com/koriym/BEAR.Saturday
Usage:
Unite bear/App
: BEAR_HOME/App/
(ignore directory: App/Form/, App/Page/, App/Ro/)
Unite bear/htdocs
: BEAR_HOME/htdocs/
(ignore directory: htdocs/__bear/, htdocs/__edit/, htdocs/__panda/)
Unite bear/libs
: BEAR_HOME/libs/
Unite bear/Form
: BEAR_HOME/App/Form/
Unite bear/Page
: BEAR_HOME/App/Page/
Unite bear/Ro
: BEAR_HOME/App/Ro/
Unite bear/views
: BEAR_HOME/App/views/
Key Map example.
"-------------------------------------------------------------------------------
" unite.vim
"-------------------------------------------------------------------------------
nnoremap [unite] <Nop>
nmap f [unite]
nnoremap <silent> [unite]u :<C-u>Unite<Space>
"-------------------------------------------------------------------------------
" unite-bear
"-------------------------------------------------------------------------------
nnoremap <silent> [unite]bh :<C-u>UniteWithInput bear/htdocs<CR>
nnoremap <silent> [unite]ba :<C-u>UniteWithInput bear/App<CR>
nnoremap <silent> [unite]bf :<C-u>UniteWithInput bear/Form<CR>
nnoremap <silent> [unite]bp :<C-u>UniteWithInput bear/Page<CR>
nnoremap <silent> [unite]br :<C-u>UniteWithInput bear/Ro<CR>
nnoremap <silent> [unite]bl :<C-u>UniteWithInput bear/libs<CR>
nnoremap <silent> [unite]bv :<C-u>UniteWithInput bear/views<CR>