Yegappan wrote:

> On Mon, Dec 25, 2017 at 7:51 AM, lacygoill <[email protected]> wrote:
> > To reproduce:
> >
> > vim -Nu NONE some_file
> > :vim /./ %
> > :leftabove copen
> >
> > I expected the window to be opened on the left, but instead Vim opens it on
> > the right.
> >
> > According to :h :lefta:
> >
> > Doesn't work for |:execute| and |:normal|.
> >
> > So, I thought that maybe :leftabove doesn't work with :copen, like for
> > :execute and :normal.
> > But this remark is also present in :h :topleft and :h :botright, which
> > doesn't prevent these modifiers to work with :copen:
> >
> > :bo copen
> >
> > Opens the quickfix window at the very bottom of the screen.
> >
> > :to copen
> >
> > Opens the quickfix window at the very top of the screen.
> >
> > I searched on the issue tracker (is:issue leftabove, is:issue aboveleft,
> > is:issue belowright, is:issue rightbelow) but couldn't find anything which
> > seemed relevant.
> >
> 
> I am attaching a patch to do this. But I am not sure whether this behavior is
> acceptable/expected. If you open the quickfix/location window in a vertically
> split window, it is hard to read the lines. As the quickfix/location windows 
> has
> long lines, from a readability perspective, it makes sense to open it always 
> as
> a horizontally split window (either at the top or at the bottom).

Thanks for the patch.  However, I don't think it should change
cmdmod.split, that's an unexpected side effect.  Using a local variable
would be better.

It may be strange to do a vertical split, but if the screen is very wide
it does make sense.

Would be nice to have a test.

-- 
hundred-and-one symptoms of being an internet addict:
162. You go outside and look for a brightness knob to turn down the sun.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

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