Dear Vimers,
Put the following code in your .vimrc and use :Bonly in any currently
active Buffer to close all others.
" Define Function and Command to close all buffers except the active:
if has('ruby')
fun! BufDelExcptActv()
ruby << RUBYCODE
VIM.command(":bd #{((0...VIM::Buffer.count).map {|i|
VIM::Buffer[i].number } - [ VIM::Buffer.current.number ] ).join(' ')}")
RUBYCODE
endfun
com -nargs=0 Bonly :call BufDelExcptActv()
endif
It is not beautiful vimscript. Sorry about that...
Kind regards!
Asis
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php