Ⅰ. 插件描述
Toggle focus on ruby testsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'jcqvisser/focus-toggle'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'jcqvisser/focus-toggle'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'jcqvisser/focus-toggle'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/jcqvisser/focus_toggle
Ⅳ. 文档说明
# focus_toggle
Toggle focus on ruby tests
This package is only useful if you're using the minitest-focus gem.
Commands
Afadds focus to all tests in the current fileRfremoves focus to all tests in the current fileAddFocusHereadds focus to the test the cursor is currently inRemoveFocusHereremoves focus from the test the cursor is currently in
Proposed Keybindings
nnoremap <leader>af :AddFocusHere<CR>nnoremap <leader>rf :RemoveFocusHere<CR>
Installation
Follow the directions of your plugin manager
- Vundle:
Plugin 'jcqvisser/focus_toggle' - Plug:
Plug 'jcqvisser/focus_toggle'
- Vundle: