dotfiles

Author: Kyle Fuller <kyle@fuller.li> 2018-12-23 21:53:48 +0000 +0000
Committer: Kyle Fuller <kyle@fuller.li> 2018-12-23 21:53:48 +0000 +0000
Commit: aeaafa9ec058cf58b20b121118cb916472f57aef
Parent: d6c6423bc4e915e9695240b3baac511f375d7994


feat(vim): Add vim-test
diff --git a/.vim/vimrc b/.vim/vimrc
index a6d959989bf75a6dca776f07338cb2e3dcb374a2..4b07794e502ad2aa3e4c2f64eb1c0b606c173467 100644
--- a/.vim/vimrc
+++ b/.vim/vimrc
@@ -7,6 +7,7 @@ Plug 'sjl/vitality.vim'
 Plug 'tpope/vim-sensible'
 
 " Project
+Plug 'janko-m/vim-test'
 Plug 'nvie/vim-flake8'
 Plug 'w0rp/ale'
 
@@ -39,6 +40,10 @@ " File Navigation / Search
 nnoremap <Leader>o :Files<cr>
 nnoremap <Leader>f :NERDTreeFind<cr>
 nnoremap <Leader>ag :Ag <cword><cr>
+
+" Testing
+nnoremap <Leader>t :TestFile<cr>
+nnoremap <Leader>T :TestSuite<cr>
 
 nnoremap <C-n> :tabn<cr>
 nnoremap <C-p> :tabp<cr>
@@ -135,6 +140,9 @@ " autocmd BufWritePre * :%s/\s\+$//e
 
 " Syntastic
 let g:syntastic_python_flake8_args="--max-complexity 10"
+
+" vim-test
+let test#strategy = "vimterminal"
 
 if &shell =~# 'fish$'
   set shell=bash