Saturday, July 14, 2012

Re: scripting make and quickfix window behaviour

The addition of "set switchbuf=useopen" to my vimrc has gotten me the
behaviour that I was looking for without any other modifications.

Thanks for the help!

Marc

On Sat, Jul 14, 2012 at 6:15 AM, John Beckett <johnb.beckett@gmail.com> wrote:
> Marc Jessome wrote:
>> I'm writing a script that will allow for what I feel is a
>> more comfortable :make + :copen behaviour. Essentially what I
>> am writing is a function that will run :make!, and check if
>> there are errors.
>
> It's not quite what you want, but are you aware that :cw
> opens the quickfix window, but only if there are errors?
>
> Check your 'switchbuf' option which (I think) may be responsible
> for jumping to the already open buffer in a window in another
> tab.
>
> John
>
> --
> You received this message from the "vim_use" 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 from the "vim_use" 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

No comments:

Post a Comment