Loading ...
Sorry, an error occurred while loading the content.
 

Re: Command-w opens new buffer... Should delete current buffer.

Expand Messages
  • Phill R Kenoyer
    ... I would say that should act like :bdelete if there are no splits. That would be great. Thanks!
    Message 1 of 12 , May 13, 2004
      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:
      >> 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
      >>> on
      >>> the same buffer, for example, use
      >>>
      >>> :split
      >>> or
      >>> :vsplit
      >>
      >> 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.

      I would say that <D-w> should act like :bdelete if there are no splits.
      That would be great.

      Thanks!
    Your message has been successfully submitted and would be delivered to recipients shortly.