>> for bufx in vim.buffers:
>> if vim.current.buffer != bufx:
>> commandString = "bd! " + `bufx.number`
>> vim.command(commandString)
>
> Do you (or anyone) know how to rewrite this using vimscript?
Does this work for you?
let cur=bufnr('%') | bufdo if bufnr('%') != cur | bd! | endif
-tim
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---