diff --git a/.vim/ftplugin/python.vim b/.vim/ftplugin/python.vim index 0abe2d6b55ae192efb9dac7e1e79561676b2e7c9..470211689eebf5a342c20ddd7e33eff4f216b2c3 100644 --- a/.vim/ftplugin/python.vim +++ b/.vim/ftplugin/python.vim @@ -243,3 +243,14 @@ if has_key(plugs,'ale') endif " }}} +" --- Vim Test --- {{{ +if has_key(plugs, 'vim-test') + " these "Ctrl mappings" work well when Caps Lock is mapped to Ctrl + nmap <silent> t<C-n> :TestNearest<CR> + nmap <silent> t<C-f> :TestFile<CR> + nmap <silent> t<C-s> :TestSuite<CR> + nmap <silent> t<C-l> :TestLast<CR> + nmap <silent> t<C-g> :TestVisit<CR> +endif +" }}} +" diff --git a/.vimrc b/.vimrc index d3fdb33ff48ece92c0046b8bf85903548cc1d5d1..760427822386b7d50089960ad65292fe41850f7f 100644 --- a/.vimrc +++ b/.vimrc @@ -45,7 +45,10 @@ Plug 'python-rope/ropevim' " Plug 'jacoborus/tender.vim' " Plug 'tpope/vim-vividchalk' " Plug 'natebosch/vim-lsc' -" +Plug 'janko/vim-test' +" has_key(plugs, 'vim-test') +Plug '5long/pytest-vim-compiler' +Plug 'reinh/vim-makegreen' call plug#end() " }}}