/vim-rspec-focus

Vim functions for managing RSpec focus tags

Primary LanguageVim ScriptMIT LicenseMIT

rspec-focus.vim

Some helpers for focused RSpec testruns. See this Railscast for more information.

Usage

Includes the following commands:

  • ToggleFocusTag
  • AddFocusTag
  • RemoveFocusTags
  • RemoveAllFocusTags
  • ToggleDescribeFocusTag
  • ToggleContextFocusTag
  • ToggleItFocusTag

Installation

Use pathogen.vim or Vundle.vim

Key bindings

To make it more convenient, add some key bindings to your .vimrc:

" vim-rspec-focus
:nnoremap <leader>ff :ToggleFocusTag<CR>
:nnoremap <leader>fa :AddFocusTag<CR>
:nnoremap <leader>fr :RemoveFocusTag<CR>
:nnoremap <leader>fd :ToggleDescribeFocusTag<CR>
:nnoremap <leader>fc :ToggleContextFocusTag<CR>
:nnoremap <leader>fi :ToggleItFocusTag<CR>
:nnoremap <leader>rf :RemoveAllFocusTags<CR>