简体   繁体   中英

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 ,它是Vim的插件,允许您从Vim内部使用Tmux。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM