I would like to run a command from vim, to spawn a persistent python watchdog process.
The normal command is pycco -w somefile.py
.
I have tried running tee from vim.
:!pycco -w | tee % | w %
runs the python watchdog command but does not return to vim.
Reversed, :w tee % | !pycco -w %
generates error
e172 only 1 file name allowed
A commentor in this thread, mentions using sh -c ">"
rather than tee.
(I generate trailing character error when trying sh).
how to tee process using vim {cmd}?