diff --git a/README.md b/README.md index 3a5fdcd..3e897f1 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +This is a fork to change the plugin to use bwipeout instead of bdelete for deleting the buffer. + +The original README is below: + I have not written this plugin myself. I found it on http://vim.wikia.com/wiki/Deleting_a_buffer_without_closing_the_window and it is to my best knowledge licensed with a CC-BY-SA license (full license text here: http://creativecommons.org/licenses/by-sa/3.0/legalcode). diff --git a/plugin/bclose.vim b/plugin/bclose.vim index 232763f..4eead2c 100644 --- a/plugin/bclose.vim +++ b/plugin/bclose.vim @@ -66,7 +66,7 @@ function! s:Bclose(bang, buffer) endif endif endfor - execute 'bdelete'.a:bang.' '.btarget + execute 'bwipeout'.a:bang.' '.btarget execute wcurrent.'wincmd w' endfunction command! -bang -complete=buffer -nargs=? Bclose call Bclose('', '')