Re: Backspace and Delete in vi.



Nathan wrote:
> Steve Welsh wrote:
>
>> Nathan wrote:
>>
>>> It was set to "xterm" I changed it to vt100 with no change in result.
>>>
>>> Robert Newson wrote:
>>>
>>>
>>>> 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.
>>>>
>>
>> If I recall correctly, the correct key for deleting a single character
>> is 'X' in command mode. That works in every single `vi' or `vim'
>> environment I have ever used.
>>
>> Steve
>
> Yes, that works. However most systems i work with (other than the few
> i'm having a problem with) will allow you to use the backspace and
> delete keys while in insert mode. This is quite convenient.

Yes, me too,
But if that doesn't work, fall back upon the original vi control keys:
'l' = move cursor right (what???)
'h' = move cursor left
'k' = move cursor up
'j' = move cursor down
'dd' = delete line
etc,etc
Learn to live with it and love it ;)
.



Relevant Pages

  • Re: Curiousity question
    ... keys) to move the cursor under the volume serial then press the enter key. ... email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ... The sender believes that this E-mail and any attachments were free of any ...
    (bit.listserv.ibm-main)
  • Re: Text Over Picture
    ... [MVP - Microsoft Word] ... I have been able to overtype the form just as you would do with a typewriter: enter key, tab keys, space bar and alpha/num keys. ... But I can't just put the cursor anywhere on the form and type - again, I just get the "grab" cursor anywhere I click with the mouse. ... To get to a spot, say in the middle of the form, I have to hit enter key 15 or 20 times to get it to the line I want and then tab or space over to the location on that line. ...
    (microsoft.public.word.pagelayout)
  • Re: Text Over Picture
    ... If you didn't have the picture behind the text, ... be able to place the cursor anywhere on the page and type, ... enter key, tab keys, space bar and alpha/num keys. ... line I want and then tab or space over to the location on that line. ...
    (microsoft.public.word.pagelayout)
  • Re: Text Over Picture - Solved
    ... Still works like a text box-you've got to have an area covered with text to move the cursor to it. ... [MVP - Microsoft Word] ... I have been able to overtype the form just as you would do with a typewriter: enter key, tab keys, space bar and alpha/num keys. ... To get to a spot, say in the middle of the form, I have to hit enter key 15 or 20 times to get it to the line I want and then tab or space over to the location on that line. ...
    (microsoft.public.word.pagelayout)
  • Re: Text Over Picture - Update
    ... I open the .dotx file and insert my scanned ..jpg file. ... Still works like a text box-you've got to have an area covered with text to move the cursor to it. ... I have been able to overtype the form just as you would do with a typewriter: enter key, tab keys, space bar and alpha/num keys. ... To get to a spot, say in the middle of the form, I have to hit enter key 15 or 20 times to get it to the line I want and then tab or space over to the location on that line. ...
    (microsoft.public.word.pagelayout)