Re: Quickfix behaviour

2006-10-23 Thread Marius Roets

On 10/20/06, Yegappan Lakshmanan <[EMAIL PROTECTED]> wrote:


The above problem with the quickfix window and the 'switchbuf' option
set to 'usetab' is now fixed by patch 7.0.146.

- Yegappan


This works perfectly now. Thanks a million.

Marius


Re: Quickfix behaviour

2006-10-21 Thread Marius Roets

On 10/20/06, Yegappan Lakshmanan <[EMAIL PROTECTED]> wrote:


The above problem with the quickfix window and the 'switchbuf' option
set to 'usetab' is now fixed by patch 7.0.146.

- Yegappan


Thanks, I will check it out.

Marius


Re: Quickfix behaviour

2006-10-20 Thread Yegappan Lakshmanan

Hi,

On 10/19/06, Yegappan Lakshmanan <[EMAIL PROTECTED]> wrote:

Hi,

On 10/19/06, Marius Roets <[EMAIL PROTECTED]> wrote:
> On 10/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> >
> > > 1) I would like to open a new window/tab, rather than use the one
> > > above the quickfix window.
> >
> > :h 'switchbuf' -> split
> >
> > > 2) If the buffer is already open in another tab page, I'd like to jump
> > > there, instead of opening it in this tab again.
> >
> > :h 'switchbuf' -> useopen, usetab
> >
> Thanks, it works great with one exception. When the quickfix is the
> only window in the tab (i.e. :tab copen), then it does not respect
> usetab (it opens a new split). If I do a :new to have a empty open
> window above the quickfix window, and then jump to an error, it works
> perfectly. Strange.
>

The behavior you are seeing is a bug in Vim.



The above problem with the quickfix window and the 'switchbuf' option
set to 'usetab' is now fixed by patch 7.0.146.

- Yegappan


Re: Quickfix behaviour

2006-10-19 Thread Yegappan Lakshmanan

Hi,

On 10/19/06, Marius Roets <[EMAIL PROTECTED]> wrote:

On 10/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

>
> > 1) I would like to open a new window/tab, rather than use the one
> > above the quickfix window.
>
> :h 'switchbuf' -> split
>
> > 2) If the buffer is already open in another tab page, I'd like to jump
> > there, instead of opening it in this tab again.
>
> :h 'switchbuf' -> useopen, usetab
>
Thanks, it works great with one exception. When the quickfix is the
only window in the tab (i.e. :tab copen), then it does not respect
usetab (it opens a new split). If I do a :new to have a empty open
window above the quickfix window, and then jump to an error, it works
perfectly. Strange.



The behavior you are seeing is a bug in Vim.

- Yegappan


Re: Quickfix behaviour

2006-10-19 Thread Marius Roets

On 10/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:



> 1) I would like to open a new window/tab, rather than use the one
> above the quickfix window.

:h 'switchbuf' -> split

> 2) If the buffer is already open in another tab page, I'd like to jump
> there, instead of opening it in this tab again.

:h 'switchbuf' -> useopen, usetab


Thanks, it works great with one exception. When the quickfix is the
only window in the tab (i.e. :tab copen), then it does not respect
usetab (it opens a new split). If I do a :new to have a empty open
window above the quickfix window, and then jump to an error, it works
perfectly. Strange.

Thanks
Marius


Re: Quickfix behaviour

2006-10-19 Thread hermitte
Hello,

Marius Roets <[EMAIL PROTECTED]> wrote:

> In a quickfix window, selecting an error (pressing enter) takes you to
> that error. The way it does this is by opening the file in the window
> above the quickfix window (if it is not open already, in which case it
> jumps to the open buffer, assuming the buffer is in the same tabpage).
> There are 2 problems I have with this situation. I can think of
> solutions to them using a ftplugin and remapping , but I
> thought maybe somebody had solved them already.

> 1) I would like to open a new window/tab, rather than use the one
> above the quickfix window.

:h 'switchbuf' -> split

> 2) If the buffer is already open in another tab page, I'd like to jump
> there, instead of opening it in this tab again.

:h 'switchbuf' -> useopen, usetab

HTH,


--
Luc Hermitte