Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to send commands between the two programs?

For example. Lets say I have MacVim working on some code on the left, and Terminal running commands on the right (my usual set-up). I constantly have to switch between the two programs, and this leds to lots of problems. Meta-Tab isn't really the solution here, as I am often switching to other less often run programs (Ala Chrome).

What would be awesome to see is something like running :!rake test from MacVim and seeing that command be executed in the Terminal. I used to be able to do things like that when using vanilla vim, as I would just ^Z to see the output of the command, then fg back into Vim.

So is there a way to do this, or know of something that would accomplish the same thing?

share|improve this question
up vote 5 down vote accepted

One possibility would be to redirect the output to the terminal device. A Linux example (but you should be able to modify it for OS X):

:! rake test > /dev/pts/0
share|improve this answer
Yep this worked great! Just had to use tty to get the terminal name, then redirect the output there using >. Thank you. – Eric Koslow Mar 2 '11 at 16:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.