Explorar o código

Bind q to :bd

Close #336. Also remove unnecessary echo.
Junegunn Choi %!s(int64=10) %!d(string=hai) anos
pai
achega
84faabe4cc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      plug.vim

+ 1 - 1
plug.vim

@@ -611,7 +611,7 @@ function! s:prepare()
     silent %d _
     silent %d _
   else
   else
     call s:new_window()
     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> R  :silent! call <SID>retry()<cr>
     nnoremap <silent> <buffer> D  :PlugDiff<cr>
     nnoremap <silent> <buffer> D  :PlugDiff<cr>
     nnoremap <silent> <buffer> S  :PlugStatus<cr>
     nnoremap <silent> <buffer> S  :PlugStatus<cr>