Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

I use vim a lot. I can open two files side by side with -O option:

$ vim -O hello.{h,cpp}

Today I tried screen:

`C-a |`      => split terminal vertically.
`C-a <tab>`  => switch to the new `region`
`C-a c`      => run bash in this `region`

Can I create two terminals side by side like vim -O with one-line?

share|improve this question
up vote 2 down vote accepted

If you want this to happen every time you run screen, you can put the following in ~/.screenrc:


Otherwise, you can create a new file with these commands, and pass it as a configuration file, eg:

screen -c ~/.splitscreenrc
share|improve this answer
+1 Thanks! very much – kev Dec 24 '11 at 0:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .