How could I run make, make clean, make check with :Neomake!? I'd like to do set makeprg=make\ -C\ BUILD once, and then to do my development cycle continuously.
Tim Pope's Dispatch allowed me to call :Make clean etc, for example.
Yes, the interface for that is not good.
Setting :set makeprg=make\ -C\ BUILD should be used by :Neomake! though?!
Make sure to check with :copen.
I think the following would be nice to have:
:Neomake maker --foo
If the "maker" is omitted, the first one would be used, and with :Neomake! that would be &makeprg/'make' then.
So :Neomake! clean would work.
But it conflicts with passing multiple makers to :Neomake, e.g. :Neomake python pylama.
OTOH that use case is not very common I would say, and could be moved to e.g. :NeomakeMultiple or something similar?!
Related: https://github.com/neomake/neomake/issues/175
(I consider/use Neomake only for the linting/checker stuff, and still use vim-dispatch otherwise often.)
from https://github.com/neomake/neomake/pull/651#pullrequestreview-1889695
btw: with NeomakeSh I was thinking to force the errorformat to accept everything %+G, so you will get all the output.
As for #589 defining your own maker for those one-off cases is cumbersome.. that's why I think a new command and or support for e.g. Neomake! -- clean (calls &makeprg foo) or Neomake linter --ignore=foo (calls the linter maker with --ignore=foo added to args) should be added.
+1 for :Neomake! [optional_maker_name] -- [pass-through rest of string as args for maker.exe]
+1, for :Neomake <target> shall invoke something similar to $ make <target> in the shell.
Especially, :Neomake clean does not work out-of-box.
@wookayin
That requires a new command I guess, since currently this expects a maker name (and even multiple) there.
FWIW I would agree with some API breaking change in this regard.
Most people are using it through an autocommand, and there it could be NeomakeFileLint after all.
Relevant: https://github.com/neomake/neomake/projects/1.
If we would have decent default config, we could control all those things much better.