aboutsummaryrefslogtreecommitdiffstats
path: root/vim/vimrc
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2023-04-01 17:17:02 +0100
committerMatthew Lemon <y@yulqen.org>2023-04-01 17:17:02 +0100
commit3d26aa9712b8791697aa387b782f049b4e3c85a6 (patch)
treecfc2fb6149eb944478c9cae8259869cf5aaa0a86 /vim/vimrc
parent8163b1c4c033c0ec5e57bd8a0f40995d9abb171c (diff)
added some nice vim-based keybindings
Diffstat (limited to '')
-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>