My vim configuration
git clone https://mcol.xyz/code/vim-misc
Log | Files | Refs | README

commit a76d4fc2550bb8b105753ef0ddf84dd2ca5c9f29
parent 456b9661cdfbb29471f52b1758c8fa7e4c2c59c0
Author: mcol <mcol@posteo.net>
Date:   Sat,  2 Mar 2019 22:54:52 +0000

silent bclose on error

Diffstat:
Mplugin/bclose.vim | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugin/bclose.vim b/plugin/bclose.vim @@ -69,8 +69,8 @@ function! s:Bclose(bang, buffer) endif endif endfor - execute 'bdelete'.a:bang.' '.btarget - execute wcurrent.'wincmd w' + silent! execute 'bdelete'.a:bang.' '.btarget + silent! execute wcurrent.'wincmd w' endfunction command! -bang -complete=buffer -nargs=? Bclose call s:Bclose('<bang>', '<args>')