diff --git a/README b/README.md similarity index 81% rename from README rename to README.md index 1207457..32d423b 100644 --- a/README +++ b/README.md @@ -5,3 +5,9 @@ I found it on http://vim.wikia.com/wiki/Deleting_a_buffer_without_closing_the_wi It is for deleting a buffer in Vim without closing the window. The reason for adding it here is to be able to add it to an existing Janus bundle (look at https://github.com/carlhuda/janus for instructions on how to do that). + + +For a custom bind, add this line to your Vim config file: +```` +nnoremap bd :Bclose +```` diff --git a/plugin/bclose.vim b/plugin/bclose.vim index 0d0187d..a1fc2c2 100644 --- a/plugin/bclose.vim +++ b/plugin/bclose.vim @@ -70,4 +70,3 @@ function! s:Bclose(bang, buffer) execute wcurrent.'wincmd w' endfunction command! -bang -complete=buffer -nargs=? Bclose call Bclose('', '') -nnoremap bd :Bclose