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 know about the option :!ls, but I would like to use one of the splitted interface ( after is used :sp) as a command line window. Is this possible? If it is, how do I do it?

share|improve this question
3  
There are plugins and/or patches to accomplish that. But you will sooner or later experience some quirks. My suggestion is to use a full-featured lightweight terminal instead, or screen/tmux. –  Marco Oct 8 '12 at 15:52

3 Answers 3

up vote 6 down vote accepted

Unlike Emacs, Vim tries to be a bit more minimal when it comes to working with the shell. It does not have an option to include the interactive shell inside one of it's tabs or buffers.

Although there are workarounds for this. Just like you, I really like to have a bash window in the same terminal session as I have Vim running. It is super useful while editing source files. In my case I really like to have the Ruby REPL environment running so I can test out statements before I put them in the source files.

I use Tmux to accomplish the split window. In Tmux I create a split window (default key is ctrl+b, "). This will open 2 interactive shell sessions just like a split window in Vim. Then I run Vim in one of the sessions and I'm all set.

You can see from the picture below that I have split the window horizontally with bash on top and Vim on bottom.

enter image description here

I also use Tmux to support pair programming with others. You can read more about my setup on my blog at http://jjasonclark.com/Remote-Pairing-with-SSH-and-Tmux-on-a-Mac.

share|improve this answer
1  
+1 for suggesting Tmux over screen –  Alfwed Oct 9 '12 at 16:53
1  
+1 for Tmux! I like that so much more than screen. –  prateek61 Oct 9 '12 at 17:06

Have you tried screen? Any reason that wouldn't work out for you?

share|improve this answer

I was looking for this for long and as much as I can say nothing good is really possible. I have tried many plugins/addons for vim but no one worked as I wanted.

This one is good though: ConqueTerm

However it has some inconsistency with colors. Give it a try maybe it works out for you.

share|improve this answer
    
Check this one as well: youtube.com/watch?v=5__I_cnxmPc&feature=related –  rowman Oct 8 '12 at 21:19

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.