diff --git a/.config/vim/vimrc.d/40-keys.vim b/.config/vim/vimrc.d/40-keys.vim index 121bb39..5858550 100644 --- a/.config/vim/vimrc.d/40-keys.vim +++ b/.config/vim/vimrc.d/40-keys.vim @@ -105,6 +105,9 @@ nnoremap gp '`[' . strpart(getregtype(), 0, 1) . '`]' " cursor. `subject[:-2]` cuts off the trailing newline. nmap grc :let subject=system('git show -s --format="(\"%s\")" ')ea =subject[:-2] +" Insert a Signed-off-by trailer +nmap gso :r!git config --get user.name:r!git config --get user.emailI<A>kJISigned-off-by: + " Add, stash or checkout the current file nmap ga :!git add -- % nmap gs :!git stash -- %