Move custom bind

This commit is contained in:
Mauro Porras P 2015-12-12 19:53:11 -05:00
parent dd6926acd0
commit d7533b3519
2 changed files with 6 additions and 1 deletions

View File

@ -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. 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). 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 <silent> <Leader>bd :Bclose<CR>
````

View File

@ -70,4 +70,3 @@ function! s:Bclose(bang, buffer)
execute wcurrent.'wincmd w' execute wcurrent.'wincmd w'
endfunction endfunction
command! -bang -complete=buffer -nargs=? Bclose call <SID>Bclose('<bang>', '<args>') command! -bang -complete=buffer -nargs=? Bclose call <SID>Bclose('<bang>', '<args>')
nnoremap <silent> <Leader>bd :Bclose<CR>