How to enable backspace key in VI

backspacefreebsdvi

I have bare-bone FreeBSD installation. No package installed. And VI doesn't accept backspace key. (I pressed backspace key but nothing happen)
How can I enable backspace key in VI?

Oh, and I'm using Mac, and controlling FreeBSD on VM or via Terminal.

Best Answer

  • You could try this in the terminal before running vi:

    $ stty erase [Ctrl-V] [Backspace]
    

    where [Ctrl-V] is pressing Control + V and [Backspace] is pressing the backspace key.

  • Related Question