Sunday, April 15, 2012

Re: Setting 'make -jN' in makeprg

Excerpts from John Beckett's message of Sun Apr 15 13:17:28 +0200 2012:
> a friend build the Linux kernel using -j16, although I think he
> gave that up because of the confusing error messages)
My solution is to build with -j16, then build again with -j1 and watch
one error message. With that solution in mind you understand soon that
setting -j option in .vimrc is broken because you need *two* commands:
1) compile till hitting any error
2) compile with -j1 to find that one error without confusing error
messages

Its not perfect but fastest in many cases.

If you have a look at vim-addon-actions you can bind make commands to
keys multiple times easily - and while doing so add -jX options.

Using vim-addon-local-vimrc for each project is another easy solution:
define those two mappings once and continue working

Marc Weber

--
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: