From f5d56602df70950de6b7d40966b00c9939c81763 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Sun, 26 Jan 2020 17:16:07 +0100 Subject: Intial commit of v2 See https://drewdevault.com/2019/12/30/dotfiles.html --- .vim/after/ftplugin/gitrebase.vim | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .vim/after/ftplugin/gitrebase.vim (limited to '.vim/after/ftplugin/gitrebase.vim') diff --git a/.vim/after/ftplugin/gitrebase.vim b/.vim/after/ftplugin/gitrebase.vim new file mode 100644 index 0000000..e97d225 --- /dev/null +++ b/.vim/after/ftplugin/gitrebase.vim @@ -0,0 +1,8 @@ +set keywordprg=:GitShow +command! -nargs=1 -bar GitShow call s:git_show() + +function! s:git_show(commit) abort + let p = popup#new({ 'filetype': 'diff' }) + let p.contents = systemlist("git show ".a:commit) + call p.open() +endfunction -- cgit 1.4.1