Hi,

On Thu, Feb 10, 2022 at 9:32 AM Mark Woods <[email protected]>
wrote:

> Thanks @yegappan <https://github.com/yegappan>, I do understand why only
> "usable" buffers are used to open items from the quickfix list, but I also
> want some additional control over what I consider to be a "usable" buffer,
> to allow some exceptions to the never re-use special buffers rule.
>
> For example, I open your MRU plugin in the current window. I consider that
> to be a re-usable window, but I accept there is no way for vim to predict
> that I might consider that a re-usable window. The ability to configure a
> list of re-usable windows is what the QFEnter plugin gives me, though
> admittedly in a roundabout way.
>
> It would be nice if the ability to customise the rules for what is
> considered a usable buffer was somehow supported in vim.
>
>
>
You can try setting the 'switchbuf' option to 'uselast'. With this setting,
when you select a file
from the quickfix window,  it will be opened in the previous window
(irrespective of the type of
buffer in the window). If the file is already present in a window, then
that will be used.

Regards,
Yegappan

-- 
-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAAW7x7%3D%3DXXDoZ2SQvbCfsE%2BpbZzA-%2BNSTC3smWsy1NUeXQZwCQ%40mail.gmail.com.

Raspunde prin e-mail lui