0

I'm on a linux box connected with ssh to another linux box. When editing a file with vi, arrow keys work in default mode, but when I switch to edit mode ('a' or 'i') arrow keys output letters (like B). That makes me crazy. Any idea on how to fix that?

TIA

greg

1
  • Some details might help a lot to generate better/more answers. For example: What are your terminal settings? What is in $TERM? What SSH client are you using?
    – user260419
    Apr 14, 2014 at 11:56

1 Answer 1

1

It could be probably default vi thats built into bash. Did you try install vim "apt-get install vim" on Ubuntu/Debian?

1
  • Nice! I didn't know there was such a thing. Running "vi" was giving me the "VIM improved" message... installing the real VIM package did the trick. Thanks @Sai !
    – greg
    Apr 14, 2014 at 14:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .