浏览代码

updated vim-plug

wreed4 10 年之前
父节点
当前提交
342002a6ab
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      autoload/plug.vim

+ 3 - 1
autoload/plug.vim

@@ -1901,9 +1901,11 @@ function! s:preview_commit()
 
 
   execute 'pedit' sha
   execute 'pedit' sha
   wincmd P
   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
   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