From 3d26aa9712b8791697aa387b782f049b4e3c85a6 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sat, 1 Apr 2023 17:17:02 +0100 Subject: added some nice vim-based keybindings --- vim/vimrc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'vim/vimrc') 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 :checktime +" Python - keybindings +nnoremap Ts :setlocal makeprg=pytest\ -q\ % +nnoremap Tt :make! +nnoremap Tf :setlocal makeprg=flake8\ % +nnoremap Tb :setlocal makeprg=black\ % + " clear search highlights nnoremap :noh:call clearmatches() -- cgit v1.2.3