From 5393f337953e7d8ab35d873aa2081ff575a41d88 Mon Sep 17 00:00:00 2001 From: bretello Date: Thu, 31 Mar 2022 19:30:31 +0200 Subject: [PATCH] vim: add GL shortcut to show git log for function under cursor --- vim/shortcuts.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/vim/shortcuts.vim b/vim/shortcuts.vim index 93b48a6..5550a69 100644 --- a/vim/shortcuts.vim +++ b/vim/shortcuts.vim @@ -155,6 +155,7 @@ vnoremap gs :call GitShowVisual() vnoremap r :call VisualSelection('replace', '') nnoremap K :exe "Rg " . expand("") +nnoremap GL :exe "Git log -L:" . expand("") . ":" . expand("%") autocmd FileType python nnoremap T :Pytest function --pdb " Ultisnips