Re: Command-w opens new buffer... Should delete current buffer.
- On May 13, 2004, at 12:19 PM, Benji Fisher wrote:
> On Thu, May 13, 2004 at 11:45:59AM -0700, Phill R Kenoyer wrote:I would say that <D-w> should act like :bdelete if there are no splits.
>> On May 13, 2004, at 10:25 AM, Benji Fisher wrote:
>>> On Thu, May 13, 2004 at 08:35:50AM -0700, Phill R Kenoyer wrote:
>>> Vim has only one GUI window, but can have multiple windows in the
>>> sense described under :help active-buffer . To get a second window
>>> the same buffer, for example, use
>> Ahhh, now it make sense to me. I was thinking Window as a whole new
>> container as oppose to the split "windows". Now I'm not so confused.
>> It makes perfect sense for <D-w> to close the "window" and <D-W> to
>> close the file. That is what I can live with. (It would be nice to
>> have each Window in a new container instead of split in the same
>> container, but I can still live without it.)
>> I always work in different buffers because the split windows take up
>> too much space. So I was thinking Windows == Buffers. I also thought
>> that the split's were just different buffers on the same window.
>> After experimenting with it, I see that when I have a split open the
>> File->Close or <D-w> does work as expected. It's only when I have all
>> the files in buffers that it seems wrong.
>> So I guess I should just add a <D-W> to close the file or :bdelete.
>> Thanks for being patient with me.
> Thanks for returning the favor!
> The last question is whether you have a strong opinion on whether
> <D-w> should act like :quit or :bdelete when there are no splits.
That would be great.