From d7533b35192569ead8ca1092432b714c66312c15 Mon Sep 17 00:00:00 2001 From: Mauro Porras P Date: Sat, 12 Dec 2015 19:53:11 -0500 Subject: [PATCH] Move custom bind --- README => README.md | 6 ++++++ plugin/bclose.vim | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) rename README => README.md (81%) 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