2011/11/11 Taylor Hedberg <[email protected]> > Invoking Ruby to do this seems like overkill, not to mention that it > (obviously) is incompatible with any Vim not compiled with Ruby support. >
I totally agree with Taylor. My Ruby-Script is not ideal. Anyway after searching around a bit, I found that Christian Robinson has written a very nice script for :Bonly Have a look yourselves: http://christianrobinson.name/vim/BufOnly.vim Best regards! Asis > 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 > -- Asis Hallab Rothehausstr. 6 - 12 50823 Köln Skype: asis.hallab.cgn Fest (Köln) 42346046 Mobil (O2) 0176 63370211 Fax 01212 - 5 - 30697106 -- 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
