Hi,

On Wed, Jul 6, 2016 at 2:18 PM, Daniel Hahler <[email protected]>
wrote:
>
> set buftype=nofile
> set noequalalways
> call setqflist([{'lnum': 1, 'bufnr': 1, 'col': 0, 'valid': 1, 'vcol': 0,
'nr': 0, 'type': 'E', 'pattern': '', 'text': 'msg'}])
> copen
> resize 1
> % vim -u minimal.vim
>
> Now going to the quickfix list (C-w j) and pressing Enter will result in
> "E36: Not enough room".  This happens because the "nofile" buffer will
> not be re-used to display the error,
>

Yes. This is by design. When opening a file from the quickfix window,
windows/buffers with 'buftype' set to "nofile" will be skipped. Many plugins
set the 'buftype' to 'nofile' and use the buffer to display some content.
Reusing that window for showing a selected file will impact the plugin.

>
> and when creating a new split apparently :1sp (or even :0sp?!) will
> be used.
>

This is the expected behavior of the 'noequalalways' option.

- Yegappan

>
> I see the following issues here:
> 1. the "nofile" buffer's window could be used directly
> 2. in case a new split is needed, the height should not be based on the
>    quickfix/location list, since that is typically small
>

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui