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'm using the terminal shell of the MAC OSX (Unix environment) and I was wondering if it's possible to open a new terminal window in the current directory that I'm located in. Frequently I want to enter a file with a vi and see the contents of the folder simultaneously. CMD+N will open a new terminal with the default path being the home path ~.

Is this possible?

If not, perhaps it's possible to split my terminal window, such that I can enter one file with vi will remain in the bash command line with the other half of the split-ed window?

Thanks a lot! Amit

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Just above the scrollbar there's a button that has a gray window with a bar across the middle. If you click it, the terminal splits into two panes; you can drag the divider to resize the panes, and run vi in the bottom pane while keeping the original terminal contents in the top pane. (You will then see two such buttons above the scrollbar for each pane; the bottom one closes the pane.)

To be clear: this does not give you multiple usable terminals, just multiple views of the terminal's scrollback. Terminal.app doesn't have a way to clone a tab, but development releases of iTerm do.

share|improve this answer
    
I see, that works! Is there a shortcut (keyboard button) to split the terminal? Also, it there a keyboard shortcut to switch between splitt-ed terminal windows? –  Amit Mar 11 '11 at 20:16
    
Lastly, is it possible to vertically split it rather than horizontally? –  Amit Mar 11 '11 at 20:17
    
It doesn't look like either is possible. –  geekosaur Mar 11 '11 at 20:23
    
Man that is very very unfortunate. –  Amit Mar 11 '11 at 20:33
    
How do I even switch between terminal windows, do you know?? –  Amit Mar 11 '11 at 21:03

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.