<br><br><div class="gmail_quote">On Tue, Sep 4, 2012 at 5:01 PM, Alexander Kornienko <span dir="ltr"><<a href="mailto:alexfh@google.com" target="_blank">alexfh@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Tue, Sep 4, 2012 at 4:38 PM, Nico Weber <span dir="ltr"><<a href="mailto:thakis@chromium.org" target="_blank">thakis@chromium.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="gmail_quote"><div><div>...</div></div><div class="im"><div>Remove.</div><div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
+  let l:output = system(a:cmd)<br>
</div><div>+  cexpr l:output<br>
+  cwindow<br></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>+  let w:quickfix_title = a:cmd<br>
</div><div>+  if v:shell_error != 0<br>
</div>+    cc<br>
<div>+  endif<br></div></blockquote><div><br></div></div><div>Replace all that with</div><div><br></div><div><div>  let l:oldmakepgr = &makeprg</div><div>  let &makeprg = a:cmd</div><div>  silent make | cwindow</div>


<div><div>  let &makeprg = l:oldmakepgr</div></div><div><br></div><div>(Gives you a warning when trying to compile a modified buffer too)</div></div></div></div>
</blockquote></div>Doesn't work for me: after running your code vim (7.3, if this matters) doesn't repaint it's window, and I end up having a blank screen until I make vim repaint everything.</blockquote><div>
The problem is with "silent". But when I remove it, I have to hit Enter after running this function, and, what is more important, it doesn't display a warning when trying to compile a modified buffer. So, at least on my configuration of vim 7.3 this change doesn't make sense. </div>
<div><br></div><div>-- </div><div>Regards,</div><div>Alex </div></div><br>