On 11:59 Tue 27 Nov     , Techlive Zheng wrote:
> `:quit` command currently exits vim if it is the last open window, help 
> window will be ignored in this check, is there any way to specify certain 
> type of buffers by '&buftype' or '&filetype' to be ignored during this 
> process?
> 
> -- 
> You received this message from the "vim_dev" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php

Hi,

This is an answer and a question at the same time ...

Unfortunately non of the buftypes works, except help.  But the help file
discourages to set this buftype.  __Can anybody say why?__

In one of my plugins I have a table of contents window which could be
abandoned nicely, another example is the NERD_Tree window.

One always could redefine the command :quit and make a map to ^Wd to
close vim when only the window has left, but to overwrite a build-in
command one has to use one of the cmdalias plugins:
http://www.vim.org/scripts/script.php?script_id=746
http://www.vim.org/scripts/script.php?script_id=4250

Best regards,
Marcin

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui