diff --git a/.config/vim/vimrc.d/40-keys.vim b/.config/vim/vimrc.d/40-keys.vim index 40606e1..d472753 100644 --- a/.config/vim/vimrc.d/40-keys.vim +++ b/.config/vim/vimrc.d/40-keys.vim @@ -140,6 +140,7 @@ nnoremap gp '`[' . strpart(getregtype(), 0, 1) . '`]' " Mnemonic: "git reference commit" " NOTE: This uses `system` and not `:r!` to insert the text directly at the " cursor. `subject[:-2]` cuts off the trailing newline. +" TODO: print error message but insert nothing on git error nmap grc :let subject=system('git show -s --format="(\"%s\")" ')viwa =subject[:-2] " Insert a Signed-off-by trailer