Christian Brabandt wrote:
>> let &makeprg = 'make -j'.system('echo -n "$(echo
>> $(grep -c ^processor /proc/cpuinfo)+1 | bc)"')
>
> Your command looks strange, why are you adding 1 there? I
> think, better is something like:
>
> let &makeprg = 'make -j'.system('grep -c ^processor /proc/cpuinfo')Huh, you think my command is strange: you should see the original tip (link in previous message). I was just adding 1 per the original idea, which is the belief that if you have N processors you should pass N+1 to -j so there is always a process waiting to be run. Google shows varying opinions on that (one rather convincing one I glanced at suggested that such fiddling doesn't do anything significant). I don't know the consequences, but a defect in your command above is that makeprg ends up with a NUL (^@) at the end, due to the newline output by grep (seen with ':set makeprg?'). John -- 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
