Which terminal are you in?
Perhaps try
stty erase '^?'
before starting Vim. (Type it exactly like that, with a literal ^ followed by a
literal ?.) Because changing that to ^H breaks things for me, and putting it back
to ^? fixes it. Maybe you will have the same luck.
Likewise, inside Vim, you could try
:set t_kb=^?
That ^? is not literal, though; to get it, just press backspace (since that is
what backspace is providing you with anyway!). If you are using colour, the ^?
should appear a different colour to the other text, and the arrows should move
across it as if it were a single character.
Ben.
On 10/02/11 10:42 PM, abhay hegde wrote:
Thanks Christian. But it's not working. Although, hitting Ctrl + H is getting me
the work done.! I think i will have to get used to Ctrl + H for backspace!
Thanks
Abhay
On Thu, Feb 10, 2011 at 3:55 AM, Christian Brabandt <[email protected]
<mailto:[email protected]>> wrote:
Hi abhay!
On Mi, 09 Feb 2011, abhay hegde wrote:
> Hi all , i have a weird problem . Bellow is my .vimrc
>
[…]
>
> As you can see, i have set the backspace to delete the characters left of
> the cursor. However i am not able to achieve it. Each time (insert
mode) i
> hit the backspace button, it gives me " ^? ". The remaining
customizations
> are working fine.
>
> I am using Vim 7.2. on a Linux ( Fedora 11 ) machine.
>
> Can someone help me with this ?
Try to set it manually, by setting
:set t_kb=^V<BS>
(this is pressing <Ctrl-V> and afterwards backspace. This sets this
option to the raw keycode of backspace (and it usually looks like ^H,
but is only one char).
Additionally, see if any of the following help sections help you
:h :fixdel (and read at least until Linux-backspace)
:h backspace-delete
regards,
Christian
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php