Browse Source

Bind q to :bd

Close #336. Also remove unnecessary echo.
Junegunn Choi 10 năm trước cách đây
mục cha
commit
84faabe4cc
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      plug.vim

+ 1 - 1
plug.vim

@@ -611,7 +611,7 @@ function! s:prepare()
     silent %d _
   else
     call s:new_window()
-    nnoremap <silent> <buffer> q  :if b:plug_preview==1<bar>pc<bar>endif<bar>echo<bar>q<cr>
+    nnoremap <silent> <buffer> q  :if b:plug_preview==1<bar>pc<bar>endif<bar>bd<cr>
     nnoremap <silent> <buffer> R  :silent! call <SID>retry()<cr>
     nnoremap <silent> <buffer> D  :PlugDiff<cr>
     nnoremap <silent> <buffer> S  :PlugStatus<cr>