Re: Backspace and Delete in vi.
- From: Steve Welsh <nobody@xxxxxxxxxxx>
- Date: Tue, 10 Jan 2006 01:27:33 +0000
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 ;)
.
- References:
- Backspace and Delete in vi.
- From: Nathan
- Re: Backspace and Delete in vi.
- From: Robert Newson
- Re: Backspace and Delete in vi.
- From: Nathan
- Re: Backspace and Delete in vi.
- From: Steve Welsh
- Re: Backspace and Delete in vi.
- From: Nathan
- Backspace and Delete in vi.
- Prev by Date: Re: Backspace and Delete in vi.
- Next by Date: Re: xterm binary ascii transfer
- Previous by thread: Re: Backspace and Delete in vi.
- Next by thread: Re: Backspace and Delete in vi.
- Index(es):
Relevant Pages
|