Gvim shell problem
I have been using Gvim for quite sometime and I like it very much.
There is a problem I am facing with Gvim.开发者_如何学C 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)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.
Try some wrappers, e.g. Conque Shell : Run interactive commands inside a Vim buffer ;)
vim is not for such complicated things I think. you can do simple shell operation via :! or :shell, However, vim is only a good if not best editor. What you need can be done in shell-mode of Emacs.
精彩评论