Invoking Ruby to do this seems like overkill, not to mention that it
(obviously) is incompatible with any Vim not compiled with Ruby support.
You could do this instead, using pure VimScript, making it simpler and
more portable:
function! BufDelExcptActv()
let buf = bufnr('%')
bufdo if bufnr('%') != buf | bdelete | endif
endfunction
command! Bonly call BufDelExcptActv()
--
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