Thanks Gerald for pointing it out. I must have made some mistake when
I tried it earlier. May be I missed out on one of the two each time I
tried.

As you pointed out t_kb works fine. The Backspace key had lost its
correct keycode may be.. (may be because of a changed keyboard, or
using VNC etc.)

Using t_kb got back the association. I also used set
backspace=indent,start,eol so that it could delete everything, and not
just the text added in the current insertion.

The backspace key wasn't working well in the command mode still, and
the beahviour was same as the delete key. I put in a  map ^? X in the
.vimrc and that too solved the problem.

Thanks to your help it is just fine....


SK


On 6/19/06, Gerald Lai <[EMAIL PROTECTED]> wrote:
On Mon, 19 Jun 2006, Sushmit Khanna wrote:

> Hi,
> I was initially having some problems with backspace key, specially
> in insert mode. In insert mode I was getting the ^? signs when
> backspace is pressed. This got fixed by :fixdel
>  Now the issue is that the backspace is not deleting chars *before*
> the cursor, but after the ones after it, be it insert mode or command
> mode.
>  :help backspace was not helpful in this matter.
>
>  Can you help me in this getting around this.
>  My $TERM in shell is set as xterm (correctly). And stty erase is
> also correct (which should not matter if fixdel has been invoked)

Have you tried what was described in

  :help :fixdel

? That is,

  if &term == "xterm"
    set t_kb=^V<BS>
    fixdel
  endif

where ^V<BS> is Ctrl-v + Backspace.

--
Gerald

Reply via email to