Vim in Emacs

The question does not apply to some Vim-mode in Emacs, but to Vim inside Emacs. I do not engage in any editorial war. I just want to use Vim in Emacs.

http://dl.getdropbox.com/u/175588/emacs.png

You can get into Vim in Emacs with the "Mx term" and "vim" commands.

When I use Vim-Emacs, typing is awkward. There are odd characters such as "4m", "4mm" and "^? ^?". Backspace and x-button in insert mode do not work. Odd characters appear when I press the last keys. So

How can I get Vim to work properly in Emacs?

[Updated Information]

Faulty Vim-Emacs is found in at least the following OSs:

  • Mac OS 10.5.6
+4
source share
2 answers

What you see is that installing the $ TERM terminal in a / Vim shell session does not match what the EMACS terminal does. Mine works fine, except that the delete key is mapped to DEL, 0x127, and Vim wants ^ H, 0x8. Mine shows the value of $ TERM as an itherm color.

Check what you have as $ TERM

$ echo $ TERM

and check the Vim docs to fix the backspace problem.

+4
source

For backspace,

stty crt erase <CTRL-V><BACKSPACE> 

Worked for me.

As for the rest, I do not know. Suppose this is what the shell infers that the terminal is not processing. (Never used the term emacs "before ..." prefer iTerm or Terminal.app for shell-related content. The term emacs was called the "imperfect terminal emulator")

0
source

All Articles