Move custom bind
This commit is contained in:
parent
dd6926acd0
commit
d7533b3519
@ -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>
|
||||||
|
````
|
@ -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>
|
|
||||||
|
Loading…
Reference in New Issue
Block a user