<div><br></div><div>> I think that this is not correct. From the vim help file:<br>><br>> :q[uit] Quit the current window. Quit Vim if this is the last<br>> window. This fails when changes have been made and<br>
> Vim refuses to |abandon| the current buffer, and when<br>> the last file in the argument list has not been<br>> edited.<br>> If there are other tab pages and quitting the last<br>
> window in the current tab page the current tab page is<br>> closed |tab-page|.</div><div><br></div>I do think I over simplified the answer the first time around. However, all the details of vim documentation for the different types of quits, closing/hiding windows, closing/hiding/unloading buffers is a bit overwhelming and probably unnecessary for this specific problem. As noted in the documentation :q targets a Vim window (view) in a tab-page - if you only have one, Vim quits. An easy example of the behavior within vim is when you use :h - in that case :q closes the help but not Vim). How that related to Vimpulse & the different states of emacs I am not sure.<div>
<br></div><div><br><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Anyhow I really would like to be able to :wq without loosing emacs. I<br>
don't think one can thing that this can only be achieved by :w<br>
followed by :bd<br>
<br>
So please advise about how to setup so that :q quits the current<br>
buffer, preferably without changing my window configuration.<br></blockquote><div><br></div><div>While others have already made other suggestions, to write & close a buffer, :w | bd suffices, though it uses more keystrokes than :wq.</div>
</div></div></div>