Re: scripting make and quickfix window behaviour

2012-07-14 Thread mascip
Hi Marc, thanks a lots ! I adapted your code a bit, it does exactly what i want :o) I don't know why, but all my errors where "not valid", so your code didn't work. Instead, i just told it to open a new tab and do copen (and cfile), if there was more than 1 element in qflist (if there is just one,

Re: scripting make and quickfix window behaviour

2012-07-14 Thread Marc Jessome
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 wrote: > Marc Jessome wrote: >> I'm writing a script that will allow for what I feel is

RE: scripting make and quickfix window behaviour

2012-07-14 Thread John Beckett
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 quick