Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gvim shell problem

Tags:

vim

I have been using Gvim for quite sometime and I like it very much.
There is a problem I am facing with Gvim.
I type "shell" and go to the command line, When I press the up arrow I get some weird symbols and I am not able to use backspace also.
The version which I am using.
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Mar 19 2009 15:27:51)

like image 427
Deepak Avatar asked Mar 11 '10 13:03

Deepak


2 Answers

Sadly the reason this is not working is because gvim is an editor, not a terminal emulator. When yoy type :shell in gvim, you do not actually get a shell, you get some weak shell emulation. I say 'weak' because that shell emulation does not know how to deal with color codes, clear the screen or much else.

I stick to terminal vim, that way I can either use :shell, or, as is much more common, ^Z to just drop back into my shell to do something ( ^Z == suspend ) That, plus gnu-screen, plus a good shell is all the IDE I want.

like image 193
chiggsy Avatar answered Oct 05 '22 06:10

chiggsy


Try some wrappers, e.g. Conque Shell : Run interactive commands inside a Vim buffer ;)

like image 43
wik Avatar answered Oct 05 '22 05:10

wik