Make commit preview unmodifiable + map q for quit
This commit is contained in:
parent
23b508e5fd
commit
6286337e5b
1 changed files with 2 additions and 0 deletions
2
plug.vim
2
plug.vim
|
@ -1904,6 +1904,8 @@ function! s:preview_commit()
|
||||||
setlocal filetype=git buftype=nofile nobuflisted
|
setlocal filetype=git buftype=nofile nobuflisted
|
||||||
execute 'silent read !cd' s:shellesc(g:plugs[name].dir) '&& git show --pretty=medium' sha
|
execute 'silent read !cd' s:shellesc(g:plugs[name].dir) '&& git show --pretty=medium' sha
|
||||||
normal! gg"_dd
|
normal! gg"_dd
|
||||||
|
setlocal nomodifiable
|
||||||
|
nnoremap <silent> <buffer> q :q<cr>
|
||||||
wincmd p
|
wincmd p
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue