Monday, May 24, 2010

Re: Terminal into vim, best options???

On 24/05/10 15:29, Pablo Giménez wrote:
> Hi.
> I have been looking aroundto see what are the best options to have e
> fully usable terminal in VIM.
> Basically a buffer which opens a terminal.
> I have seen a coupleof options:
> VimSh: http://www.vim.org/scripts/script.php?script_id=165
> Problem here is that it needs a python ready vim, which is not so common
> in all systems.
> Screen: http://www.vim.org/scripts/script.php?script_id=2711
> This one looks good, and screen is a common in any UNIX system.
>
> Any more options, anyone can put her/his experience using any of these
> plugins?
>
> Finally to have a complitely multiplatform solution, wouldbe great to
> have a solution for windows.
> I haven't been able to find a plugin that opens a command (cmd.exe)
> session inside vim.
>
> Thanks.
>
> --
> Un saludo
> Best Regards
> Pablo Giménez
>
> --
> 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

Why don't you simply open a terminal beside Vim? Vim is not a shell, and
though there are some third-party attempts to make it behave as one,
Bram has several times showed that he was staunchly opposed against that
kind of capabilities becoming part of mainline Vim.

The :! and :shell commands in gvim for Windows open a cmd.exe window
beside Vim; in Unix gvim they make the Vim command-line into a "dumb"
terminal which, like the teletypewriters used as consoles in the first
Unix machines, can move the "paper" forward by one line at a time and
never backward. I think the "best" option about a "fully usable"
terminal in gvim is: don't. But then Vim is open source, you can always
change it in any way you want, even beyond recognition and even if it
requires huge changes to the C code.

Maybe the best option is to use _console_ Vim, which, at least on Linux
(I'm not sure anymore about Windows) will hide itself when you use :! or
:shell, and display the "fully usable" terminal from which it was
started. Not in a buffer of course -- I guess you'd need Emacs to run an
interactive shell in an editor split-window.


Best regards,
Tony.
--
The Arkansas legislature passed a law that states that the Arkansas
River can rise no higher than to the Main Street bridge in Little
Rock.

--
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

No comments:

Post a Comment