> > I'm guessing wildly here, but the main difference between running
> > :make! in Vim and running make in the shell, is that Vim must, after
> > invoking make, parse the output for errors. It is quite possible
> > that the extra time taken is the time needed for Vim to parse the
> > make output into the quickfix list. I'm not sure how you would
> > verify this.
>
> Ah! That's a great place to start. The Makefile I'm using is actually
> compiling 8051 code with the Keil C51 compiler. The Keil compiler
> dumps a whole lot of nonsense text. [...]
>
> Is there a way to prevent Vim from parsing Makefile output? [...]
AFAIK, it shouldn't parse it if you run:
:!make
(shell out to the 'make' command)
rather than:
:make!
(run vim's ':make' command without jumping to the first error)
The latter uses 'makeprg', and sets up quickfix. If you're not using
quickfix, you probably won't notice a difference. If you are, though,
you need to use the slow version. But, maybe you could tweak
'errorformat' to get better performance?
--
Best,
Ben H
--
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