Hi, Tony. > If you want to close _all_ windows of _any_ tabs containing buffer 5, > which is not 'modified' (maybe because you just saved it to disk, or > maybe because you viewed it but did not alter it), use ":bun 5". This > command accepts one or more buffer numbers, or one non-numeric buffer > name, after it, or a buffer range before it, and that buffer (or any of > those buffers if several) may, but need not, be the current one. > > If you want to close the current window but not other windows containing > the same buffer, you can use ":close", ":q" or ":x", but of course you > cannot use the buffer number in that case, because it is common to the > window you want to close and some others that you don't. > > I fear you cannot close a non-current window (but not other windows on > the same buffer) from elsewhere, but you can go to it, close it, and > come back. Depending on circumstances, there are several ways to do > that, see among others > :help expand() > :help CTRL-W > :help :wincmd > :help :drop
The bun[load] command seems to be a good alternative to my question. I think I missed it when I was trying to find an answer in the Vim help. You clear thinks out, like always. Thanks a lot. Alessandro. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
