I'm aware I can do !commands but I'd like to somehow integrate a shell in vim. Or could I use screen and split the screen so that vim takes up say, half of the screen?
|
|
||||
|
|
|
CtrlZ will suspend vim and return control to bash. Use |
|||
|
|
|
Integrating subprocesses is Vim's main weak point. There's no built-in support for a shell window, but you can try the vimsh plugin. In Screen, press You can always press Ctrl+Z to suspend Vim and run commands in the parent shell; type |
|||
|
|
|
As you suggest, I would just use screen.
If you don't want exactly half and half you can:
If you need to see what's in vim when you're on the command line, this is a good way to go. If you don't the |
||||
|
|
|
You can also use :shell to just spawn a shell. Type exit or Ctrl+D to exit the shell and return to vim. If you want both running simultaneously, using fg/bg (per Ignacio), screen (as you suggested) or just two separate terminals (xterms, virtual consoles, whatever) are about your best options. If you go to vim.org, you can probably find an extension which launches a shell directly, but you're getting dangerously close to emacs at that point. ;) Here's an example using screen: http://www.vim.org/scripts/script.php?script_id=2711 |
|||||
|
