开发者

Having trouble opening vi on a remote linux machine in Lion's Terminal

开发者 https://www.devze.com 2023-03-24 21:59 出处:网络
I just upgraded to OS X 10.7 (Lion), and when I ssh into a remote linux machine, vi is acting very goofy. Emacs works OK, and ssh\'ing into localhost works OK, so I\'m guessing there is something odd

I just upgraded to OS X 10.7 (Lion), and when I ssh into a remote linux machine, vi is acting very goofy. Emacs works OK, and ssh'ing into localhost works OK, so I'm guessing there is something odd about the Lion VT100 emulation.

Here's an example of what I'm seeing:

$ ssh -l root somelinuxserver
Linux 2.6.29.6.
root@somelinuxserver:~# vi /etc/hosts
reading /etc/hosts
Read /etc/hosts, 4 li开发者_如何学JAVAnes, 45 chars
[a bunch of spaces about this long][]<--Block Cursor Here

Any idea what settings I need to change to get this to work?

(I'm an Emacs user on my local machine, but for some bizarre reason, I prefer to edit files on remote servers in vi. If I open emacs, I start typing j to move down a line. It's weird.)


you can try one of:

TERM=vt100 vi
TERM=xterm vi
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号