vims cmd to tee to persistent python 'watchdog' process
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 %
:!pycco -w | tee % | w %
runs the python watchdog command but does not return to vim.
Reversed, :w tee % | !pycco -w %
: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}?
只是一个建议,但是你可能从vimux中获益,vimux是Vim的一个插件,它允许你从Vim内部使用Tmux。
链接地址: http://www.djcxy.com/p/49590.html