https://github.com/captbaritone/vim-vigilant
A Vim plugin to quickly spin off asyncronous Python tests in a Tmux Split
https://github.com/captbaritone/vim-vigilant
Last synced: 6 months ago
JSON representation
A Vim plugin to quickly spin off asyncronous Python tests in a Tmux Split
- Host: GitHub
- URL: https://github.com/captbaritone/vim-vigilant
- Owner: captbaritone
- Created: 2014-10-21T20:29:53.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-23T14:47:58.000Z (about 11 years ago)
- Last Synced: 2025-06-03T21:44:06.771Z (7 months ago)
- Language: VimL
- Size: 107 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Vigilant
A Vim plugin to quickly spin off asynchronous Python tests in a Tmux split.
## Installation
We depend upon [Vimux](https://github.com/benmills/vimux), so you will need to
install it as well. Use your plugin manager
([Vundle](https://github.com/gmarik/Vundle.vim),
[Plug](https://github.com/junegunn/vim-plug),
[Pathogen](https://github.com/tpope/vim-pathogen)) to install these two GitHub
repositories:
benmills/vimux
captbaritone/vim-vigilant
In your `.vimrc` set the script you use to run your tests:
" Default
let g:vigilant_cmd = 'nosetests'
## Mappings
Vigilant simply exposes commands, but to use them you probably want to create
some mappings in your `.vimrc`:
" Run all your tests
" e.g. nosetests
nnoremap va :VigilantRunTests
" Run the currently open test file
" e.g. nosetests /path/to/my/file.py
nnoremap vf :VigilantRunCurrentTests
" Run a single test class based on cursor postion
" e.g. nosetests /path/to/my/file.py:MySuite
nnoremap vc :VigilantRunTestClass
" Run a single test method based on cursor postion
" e.g. nosetests /path/to/my/file.py:MySuite.my_test_method
nnoremap vm :VigilantRunSingleTest
" Rerun your last Vigilant test command
nnoremap vv :VigilantRerun