aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vim/vimrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index d5f4e8b..c1aef6f 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -97,6 +97,12 @@ endif
" Check whether any buffers have been updated outside of vim
nnoremap <F5> :checktime<CR>
+" Python - keybindings
+nnoremap <leader>Ts :setlocal makeprg=pytest\ -q\ %<cr>
+nnoremap <leader>Tt :make!<cr>
+nnoremap <leader>Tf :setlocal makeprg=flake8\ %<cr>
+nnoremap <leader>Tb :setlocal makeprg=black\ %<cr>
+
" clear search highlights
nnoremap <leader><space> :noh<cr>:call clearmatches()<cr>