From 6286337e5bf13428cfe4905e306b6abbbd92ee64 Mon Sep 17 00:00:00 2001 From: Andrew Haust Date: Tue, 7 Jul 2015 14:53:38 -0400 Subject: [PATCH] Make commit preview unmodifiable + map q for quit --- plug.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plug.vim b/plug.vim index 8be364c..229053d 100644 --- a/plug.vim +++ b/plug.vim @@ -1904,6 +1904,8 @@ function! s:preview_commit() setlocal filetype=git buftype=nofile nobuflisted execute 'silent read !cd' s:shellesc(g:plugs[name].dir) '&& git show --pretty=medium' sha normal! gg"_dd + setlocal nomodifiable + nnoremap q :q wincmd p endfunction