Re: Backspace and Delete in vi.



Nathan wrote:

I need to interact with a number of Unix/Linux servers at work. I use putty as an SSH client to do so.
I use vi as my editor of choice.
On some of these servers, when i try to backspace, or delete, text in VI, i end up with varied results. Sometimes when i press the delete key, it doesnt delete a character, rather, it capitalizes it. and backspace generally does nothing.


Both keys work at the shell prompt, and in other full screen editors. Why does this happen to me in vi?

At a guess, the term setting is wrong.

Pressing the DELETE key generates an esc sequence (ESC [ 3 ~) which includes a TILDE (~) character - which is the convert char case command of VI.

what's the value of:

$ echo $term

I've had it set (automatically) to ANSI and VI messed up as the terminal being emulated was a VT100; changing it thus fixed the problem.

.



Relevant Pages

  • Re: Backspace and Delete in vi.
    ... I use vi as my editor of choice. ... On some of these servers, when i try to backspace, or delete, text in VI, i end up with varied results. ... Sometimes when i press the delete key, it doesnt delete a character, rather, it capitalizes it. ... Both keys work at the shell prompt, and in other full screen editors. ...
    (comp.os.linux)
  • RE: blank screen on boot in fc7
    ... Have you backspaced out the rhgb quiet portion before entering the space ... Then you backspace out ... Changing this entry for the driver to vesa should at least give you some ... Now what editor you use for editing in text mode is up to you. ...
    (Fedora)
  • Re: blank screen on boot in fc7
    ... Then you backspace out rhgb quiet, add a space and follow with a 3 and press enter. ... This file should at least tell you what driver it is trying to use which is causing a blank screen. ... Now what editor you use for editing in text mode is up to you. ...
    (Fedora)
  • Re: Backspace and Delete in vi.
    ... I use vi as my editor of choice. ... On some of these servers, when i try to backspace, or delete, text in VI, i end up with varied results. ... Both keys work at the shell prompt, and in other full screen editors. ... However, vim allows use of the arrow keys, etc whilst in INPUT mode as it ...
    (comp.os.linux)
  • Re: Backspace and Delete in vi.
    ... Steve Welsh wrote: ... I use vi as my editor of choice. ... On some of these servers, when i try to backspace, or delete, text in VI, i end up with varied results. ... Both keys work at the shell prompt, and in other full screen editors. ...
    (comp.os.linux)