On Tue, Sep 4, 2012 at 4:38 PM, Nico Weber <[email protected]> wrote:

> ...
> Remove.
>
>
>>  +  let l:output = system(a:cmd)
>> +  cexpr l:output
>> +  cwindow
>>
> +  let w:quickfix_title = a:cmd
>> +  if v:shell_error != 0
>> +    cc
>> +  endif
>>
>
> Replace all that with
>
>   let l:oldmakepgr = &makeprg
>   let &makeprg = a:cmd
>   silent make | cwindow
>   let &makeprg = l:oldmakepgr
>
> (Gives you a warning when trying to compile a modified buffer too)
>
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.


-- 
Regards,
Alex
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to