From b56eaa0eb2cb208ea664d1a562b9e5be6c82a87d Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Sat, 27 Aug 2022 17:53:18 +0200 Subject: [PATCH] vim:keys: Map `gb` to git blame --- .config/vim/vimrc.d/40-keys.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/vim/vimrc.d/40-keys.vim b/.config/vim/vimrc.d/40-keys.vim index 967d212..a31d389 100644 --- a/.config/vim/vimrc.d/40-keys.vim +++ b/.config/vim/vimrc.d/40-keys.vim @@ -107,6 +107,9 @@ if exists('g:loaded_fugitive') nmap gc :G commit " Move to root of directory nmap gcd :Gcd + " git blame in scroll bound vertical split (only the commit hashes, see + " :help :Git_blame) + nmap gb :G blameC else " Move to root of directory " NOTE: only works if a file is already opened