shell in a window

27 views
Skip to first unread message

shawn wilson

unread,
Jun 7, 2012, 4:02:28 AM6/7/12
to vim...@googlegroups.com
how do i get a shell prompt in a window? ! executes commands, and
:shell gives me a temporary shell. but i can't figure out how to get
the prompt in a window.

Ben Fritz

unread,
Jun 7, 2012, 9:00:28 AM6/7/12
to vim...@googlegroups.com

You mean an internal Vim window? You need a plugin or a patch for that. The one I know about is Conque: http://www.vim.org/scripts/script.php?script_id=2771

shawn wilson

unread,
Jun 7, 2012, 12:34:59 PM6/7/12
to vim...@googlegroups.com

I saw the plugin but no patch...?
I guess I was hooping there was some command I counsel map or something. I mean a file explorer but no shell...

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Ben Fritz

unread,
Jun 7, 2012, 12:48:34 PM6/7/12
to vim...@googlegroups.com
On Thursday, June 7, 2012 11:34:59 AM UTC-5, shawn wilson wrote:
> I saw the plugin but no patch...?
>

I said *or* a patch. The Vim source does not support running a shell within Vim. The Conque plugin allows it to some extent, but not quite like in emacs.

> I guess I was hooping there was some command I counsel map or something. I mean a file explorer but no shell...

Where does a file explorer come in?

Just editing a directory by default uses the netrw plugin (distributed with Vim) to show the directory contents. Or there's the NERDtree plugin which is a popular alternative. I thought you wanted a shell?

There's no built-in command or option to support running a shell in Vim, as I mentioned.

ping

unread,
Jun 8, 2012, 11:25:30 AM6/8/12
to vim...@googlegroups.com, shawn wilson
for me ConqueTerm is the perfect/cool solution!
I rely on it in a day-to-day work basis and it's the only way
I can do my network-login related works within (or without leaving) vim.
the even cool thing by doing this is:
1) you have all your system utility (openssh, telnet, ...)
available and
2) still have your vim power/same skills you learned to the command output --
you can do the search back&forth using vim's regex , for example.
3) simply a <esc> will back to normal mode, equivalently "pause" the screen output.
a "i" back to insert mode, and so to "resume" the screen.
4) to save your screen capture, simply :write filename like usual.

B.T.W:
to further extend it , I wrote a small tcl/expect script here:
https://sourceforge.net/projects/mylogin/
it actually crown the bash but add some additional features,
kind of simulate some of the key features
of secureCRT
- a popular remote login soft,
but in a "console way".
   logging,
   send email
   auto-login
   command sequence auto execution based on config file
   anti-idle
   ...

so instead of ":ConqueTerm bash" , with this script typically I:
:ConqueTerm mylogin.tcl


regards
ping
Reply all
Reply to author
Forward
0 new messages