From 69d6c9d54510cf3c22b8359be5534c6895f2d314 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 9 Jul 2015 01:25:35 +0900 Subject: [PATCH] Need to set modifiable for reloading commit content (#255) --- plug.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug.vim b/plug.vim index 229053d..cabeb4f 100644 --- a/plug.vim +++ b/plug.vim @@ -1901,7 +1901,7 @@ function! s:preview_commit() execute 'pedit' sha wincmd P - setlocal filetype=git buftype=nofile nobuflisted + setlocal filetype=git buftype=nofile nobuflisted modifiable execute 'silent read !cd' s:shellesc(g:plugs[name].dir) '&& git show --pretty=medium' sha normal! gg"_dd setlocal nomodifiable