screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: backtick metacharacter confused by scrolly wheel in vim


From: Ed Dench
Subject: Re: backtick metacharacter confused by scrolly wheel in vim
Date: Mon, 17 Apr 2006 17:08:24 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

For posterity, I resolved this with a small hack.

First, I disabled the command key and made bound F12 to the command.
[.screenrc]
bindkey -k F2 command
escape ""


Next, modified a copy of x-win us.xkb keyboard layout, ed.xkb.

    [original]
    45=13 address@hidden address@hidden address@hidden 0@
    29=R address@hidden address@hidden address@hidden address@hidden 
        
    [modified]
    45=13 address@hidden address@hidden address@hidden 0@
    29=R address@hidden address@hidden address@hidden address@hidden 


The left hand is the keycode.  It did not change.
        45 is pause/break.       Xev reports as 45.
        29 is ` on my computer.  Xev reports as 71


The first parameter is the keysym that X-win passes to the process.
        "60" is the backtick or "grave" character.
        "FFC9" is the F12 key.

Notice, that F12 still produces F12. This stayed the same in both files.
      58=R address@hidden address@hidden address@hidden address@hidden


Thus, I mapped ` to F12, so everytime I hit backtick or F12, I get F12.  Since
I want to be able to type backtick, I mapped pause/break (previously unused) to
backtick.  Not the best... but gets it done.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]