Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

up vote 2 down vote accepted

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

vert_split
screen
focus
screen

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

Your Answer

 
discard

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.