bill lam wrote: > On second thought, my requirement seemed faulty in that all > buffers except the current should already be written > otherwise it can not be switched, Is this correct? > > If the current buffer has unsaved modification, Tim's > function gives warning and aborted. Why are such warning > when it is supposed to delete other_ buffers?
I guess that Tim assumes ':set hidden' which should be pretty standard for experienced Vim users. The default (nohidden) means Vim won't go off and fiddle with another buffer while the current buffer is unsaved (that is the safest, and easiest to understand for users). You could write a script which pretends the current buffer has not been modified, and then does the stuff. But that's a bad idea. Just take the time to look at the other buffers and decide what to do with them, would be my advice. I would save the current buffer, have a quick look at the others, then do a ':qa!', then restart Vim. John --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
