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?

link|improve this question

feedback

1 Answer

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
link|improve this answer
+1 Thanks! very much – kev Dec 24 '11 at 0:42
feedback

Your Answer

 
or
required, but never shown

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