When using Vim to read from stdin, it prints a informative message:
$ echo foo | vim -
Vim: Reading from stdin...
$
This is just an example. The actual use doesn't allow shell constructs. vim <(echo foo)
is not an option.
Can I suppress that using only Vim options and/or vimrc settings?
In case you do need to know what this is for, I'm trying to use Vim for reading manpages (shameless plug). GNU man doesn't allow shell constructs in MANPAGER
, and by using ftplugin/man.vim
and other things, I have successfully managed to have a comfortable experience using just MANPAGER="vim -"
. The last remaining annoyance is the unsightly message printed after every manpage that I viewed.
export MANPAGER='vim -c "%! col -b" -c "set ft=man nomod nolist ignorecase" -'
orexport MANPAGER="vim -"
I see no problem?man ls
opens the manpage as-expected.echo foo | vim -Nu NONE -
: help less
gives some info for using it as a pager.