Merge pull request #1 from mporras/move-bind

Move custom bind
This commit is contained in:
Rasmus Bang Grouleff 2016-02-10 11:52:09 +01:00
commit 06cdd8e39e
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>