Background process text appears in terminal vim

Posted by Jezen Thomas on Super User See other posts from Super User or by Jezen Thomas
Published on 2013-11-07T08:59:52Z Indexed on 2013/11/07 9:59 UTC
Read the original article Hit count: 236

Filed under:
|
|

First time poster, long time lurker, searched, couldn’t find etc, etc.

I’m running vim in tmux, in iTerm2. I’m running a server with Grunt.js, which I have running in the background, out of my way. I start my grunt server in the background like this:

grunt server &

Grunt also watches a bunch of files, and runs some tasks when any of the watched files have been written to. The problem is, when I am in vim and I write a file, the output from grunt starts rendering in vim! Here are some screenshots to illustrate the problem:

Before writing the file:

enter image description here

And after writing the file:

enter image description here

What have I tried?

I’ve tried running a ‘stock’ vim by starting with this:

vim -u NONE

…But the problem remains. This suggests to me that the problem is not with my .vimrc. Perhaps it’s an issue with iTerm2, I don’t know. Help.

© Super User or respective owner

Related posts about vim

Related posts about terminal