summary refs log tree commit diff
path: root/.vim/after/ftplugin/gitrebase.vim
diff options
context:
space:
mode:
Diffstat (limited to '.vim/after/ftplugin/gitrebase.vim')
-rw-r--r--.vim/after/ftplugin/gitrebase.vim8
1 files changed, 8 insertions, 0 deletions
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(<f-args>)
+
+function! s:git_show(commit) abort
+    let p = popup#new({ 'filetype': 'diff' })
+    let p.contents = systemlist("git show ".a:commit)
+    call p.open()
+endfunction