You are not logged in.

#1 2006-01-05 12:53:51

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Backspace in vim

...it now produces ' ^? ' in insert mode, and doesn't move backwards in command mode. I've upgraded to xorg 7.0, and have generated a new xorg.conf .

Any clues?


.oO Komodo Dave Oo.

Offline

#2 2006-01-05 13:01:50

klapmuetz
Member
From: Germany
Registered: 2005-03-19
Posts: 75

Re: Backspace in vim

Is it in both gvim and vim? What is the output of echo &backspace?


Hello girls, I like rock climbing, mountain biking and rafting! Write me!

Offline

#3 2006-01-05 13:33:19

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Re: Backspace in vim

klapmuetz wrote:

What is the output of echo &backspace?

'indent, eol, start'

I don't have gvim installed, so I don't know if it happens in that too.


.oO Komodo Dave Oo.

Offline

#4 2006-01-05 15:51:28

klapmuetz
Member
From: Germany
Registered: 2005-03-19
Posts: 75

Re: Backspace in vim

Well, that setting looks good.

I have no clue, except for some fscked term settings...

Try different terminals... especially ones that differ in the emulation like xterm / rxvt / screen.


Hello girls, I like rock climbing, mountain biking and rafting! Write me!

Offline

#5 2006-01-06 19:42:06

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Backspace in vim

This would be a clash with your terminal's backspace key, and the 'erase' terminal setting.
Use stty to get the current value of erase, if it doesn't match, try setting it to match your backspace setting.

I had issues like this before when I tried to change things... turns out it was too much of a hassle, so I just went back to using the defaults (it messes with vfm, but Ctrl+Backspace works ther einstead of Backspace)

Offline

#6 2006-01-06 20:14:44

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Re: Backspace in vim

phrakture wrote:

Use stty to get the current value of erase, if it doesn't match, try setting it to match your backspace setting.

You were bang on target; how do I set it to ^H though? Wil I have to install xbindkeys and edit bashrc? I suspect I can just use 'bind' with the right parameters, but even after looking at the relevant `man bash` section I still don't know what those would be.

A couple more things (sorry to leap on you phrak, but you're the only one who seems to know bash inside-out): any idea why MMB-click will paste fine from GUI to Screen-inside-urxvt, but not to vanilla urxvt?

Also, is there anywhere that lists handy yet unusual key combos in bash (like Ctrl-V [key] to give a key's value)?


.oO Komodo Dave Oo.

Offline

#7 2006-01-06 21:02:14

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: Backspace in vim

I've noticed the backspace issue as well when I'm on a Mac and ssh-ing into a server to do some work in Vim.  I'll have to see if phrakture's suggestion is what causes this...it's very annoying.

Offline

#8 2006-01-06 21:41:00

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Re: Backspace in vim

elasticdog wrote:

it's very annoying.

'tis indeed sir  :evil:  :twisted:


.oO Komodo Dave Oo.

Offline

#9 2006-01-06 21:41:37

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Backspace in vim

Komodo wrote:

You were bang on target; how do I set it to ^H though? Wil I have to install xbindkeys and edit bashrc? I suspect I can just use 'bind' with the right parameters, but even after looking at the relevant `man bash` section I still don't know what those would be.

IIRC, you can use "stty erase=^?"

Komodo wrote:

Also, is there anywhere that lists handy yet unusual key combos in bash (like Ctrl-V [key] to give a key's value)?

man readline will give you all the settings and default key bindings - you can change them in ~/.inputrc (for instance, I bind C-p to history-search-backward so I can do completion ala vim)

Offline

#10 2006-01-06 22:00:18

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Re: Backspace in vim

Ok, thanks a lot phrak. I take it you don't know the cause of the MMB paste problem? I'll make a separate thread about it if not.

Cheers for your time bud  =o)


.oO Komodo Dave Oo.

Offline

Board footer

Powered by FluxBB