1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-12-22 15:21:30 +01:00

vim: add GL shortcut to show git log for function under cursor

This commit is contained in:
bretello 2022-03-31 19:30:31 +02:00
parent f88413ddf8
commit 5393f33795
Signed by: brethil
GPG Key ID: 876AAC6290170FE7

View File

@ -155,6 +155,7 @@ vnoremap <silent> <leader>gs :call GitShowVisual()<CR>
vnoremap <silent> <leader>r :call VisualSelection('replace', '')<CR>
nnoremap K :exe "Rg " . expand("<cword>")<cr>
nnoremap GL :exe "Git log -L:" . expand("<cword>") . ":" . expand("%")<cr>
autocmd FileType python nnoremap T :Pytest function --pdb<CR>
" Ultisnips