denite-rails


Ⅰ. 插件描述

denite-rails is a Denite.nvim source for Rails.

Ⅱ. 基本信息

创建日期:  2017-03-02
使用用户:  4
Github星:  17
插件作者:  Hirofumi Wakasugi

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '5t111111/denite-rails'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '5t111111/denite-rails'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '5t111111/denite-rails'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/5t111111/denite-rails

Ⅳ. 文档说明

# denite-rails

denite-rails is a Denite.nvim source for Rails.

Denite rails:dwim

to list correspoinding files to the current buffer's file in Denite buffer.

denite-rails also provide the below command to list specific files.

Denite rails:model
Denite rails:controller
Denite rails:view
Denite rails:helper
Denite rails:test
Denite rails:spec

Keymap examples

nnoremap [rails] <Nop>
nmap     <Leader>r [rails]
nnoremap [rails]r :Denite<Space>rails:
nnoremap <silent> [rails]r :<C-u>Denite<Space>rails:dwim<Return>
nnoremap <silent> [rails]m :<C-u>Denite<Space>rails:model<Return>
nnoremap <silent> [rails]c :<C-u>Denite<Space>rails:controller<Return>
nnoremap <silent> [rails]v :<C-u>Denite<Space>rails:view<Return>
nnoremap <silent> [rails]h :<C-u>Denite<Space>rails:helper<Return>
nnoremap <silent> [rails]r :<C-u>Denite<Space>rails:test<Return>
nnoremap <silent> [rails]s :<C-u>Denite<Space>rails:spec<Return>

TODO

  • Support decorators/fixtures/etc.
  • Support Cucumber/Turnip etc.
  • Smarter namespace handling
  • Refactoring
  • Write tests

添加新评论