1

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}?

Community
  • 1
  • 1
syntax
  • 585
  • 1
  • 6
  • 17
  • Hi, thanks, however this writes the shell output to the file cursor position. Any updates do not show up either. The process is running (checked psgrep) though. – syntax Aug 29 '13 at 20:23

1 Answers1

0

Just a suggestion, but you might benefit from vimux, a plugin for Vim that allows you to work with Tmux from inside of Vim.

Battleroid
  • 861
  • 2
  • 14
  • 30