I want to use vim to check the -h param of pm2(a nodejs app),
and i want to use vim to check manual page,
man ascii | vim
pm2 -h | vim
dont not work, how to do this?
I want to use vim to check the -h param of pm2(a nodejs app),
and i want to use vim to check manual page,
man ascii | vim
pm2 -h | vim
dont not work, how to do this?
If you really want to read the man
page from vim
, this is a way to accomplish the
man ascii | vim -
this is another:
vim <(man ascii)
The reason why man ascii | vim
does not work, is because vim
does not take input from standard input, unless you use vim -
.
As suggested in a comment, are you sure man ascii | less
is not enough for you? It allows you to search and move in the man page as vim
would do (/,j,k,...).
As regards checking the -h
param of pm2
, I have no clue what you mean. If by any chance you refer to vim
being "aware" that pm2
was called with that option, it does just make no sense.