From 8a72305371edbf2902b5666efc01ec68e27a34e8 Mon Sep 17 00:00:00 2001 From: Joshua Priddle Date: Tue, 19 May 2015 13:45:03 -0400 Subject: [PATCH] Specify a format when `git show` displays a commit --- plug.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug.vim b/plug.vim index 251d197..09935d4 100644 --- a/plug.vim +++ b/plug.vim @@ -1934,7 +1934,7 @@ function! s:preview_commit() execute 'pedit' sha wincmd P setlocal filetype=git buftype=nofile nobuflisted - execute 'silent read !cd' s:shellesc(g:plugs[name].dir) '&& git show' sha + execute 'silent read !cd' s:shellesc(g:plugs[name].dir) '&& git show --pretty=medium' sha normal! gg"_dd wincmd p endfunction