From f7e39707d875e31ceff7d2e6d3204ef1a6035abc Mon Sep 17 00:00:00 2001 From: Bradley Small <vc.Bradley.Small@lowes.com> Date: Wed, 5 Feb 2020 14:25:19 -0500 Subject: [PATCH] adding python ide and plugins to run tests --- .vim/ftplugin/python.vim | 11 +++++++++++ .vimrc | 5 ++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.vim/ftplugin/python.vim b/.vim/ftplugin/python.vim index 0abe2d6..4702116 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 d3fdb33..7604278 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() " }}} -- GitLab