From 83d991cb533b0677a0fd42b869e49dd473446997 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Thu, 14 Jul 2022 00:48:59 +0200 Subject: [PATCH] vim:keys: Map `gg` to `:G --- .config/vim/vimrc.d/40-keys.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.config/vim/vimrc.d/40-keys.vim b/.config/vim/vimrc.d/40-keys.vim index d493a1d..81402fe 100644 --- a/.config/vim/vimrc.d/40-keys.vim +++ b/.config/vim/vimrc.d/40-keys.vim @@ -113,6 +113,8 @@ nnoremap gp '`[' . strpart(getregtype(), 0, 1) . '`]' " Git bindings +nmap gg :G + " Insert a commit's subject behind the SHA1 that the cursor is currently on. " Mnemonic: "git reference commit" " NOTE: This uses `system` and not `:r!` to insert the text directly at the