Vim: :silent with makeprg
Posted
by
ash
on Super User
See other posts from Super User
or by ash
Published on 2012-11-07T01:39:13Z
Indexed on
2012/11/07
5:03 UTC
Read the original article
Hit count: 486
vim
I use pylint
on .py files for :make
in my .vimrc, although any program, pylint
or otherwise, applies to this problem.
set makeprg=pylint\ --reports=n\ --output-format=parseable\ %
When I run :make
, I inevitably get the annoying Press ENTER or type command to continue
prompt. I know this can be disabled with :silent
, but I can't prepend it to the makeprg
variable like this, because it throws an error:
set makeprg=:silent "pylint\ --reports=n\ --output-format=parseable\ %"
If I try to have my own "Silent make command,"
command Smake silent make
The screen goes black after calling it.
How would I do it?
© Super User or respective owner