focus_toggle


Ⅰ. 插件描述

Toggle focus on ruby tests

Ⅱ. 基本信息

创建日期:  2017-07-05
使用用户:  1
Github星:  1
插件作者:  Jacques Visser

Ⅲ. 安装方法

使用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

  • Af adds focus to all tests in the current file
  • Rf removes focus to all tests in the current file
  • AddFocusHere adds focus to the test the cursor is currently in
  • RemoveFocusHere removes 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'

添加新评论