Getting some French-Canadian keyboard strokes to work on English keyboard

Posted by Gradient on Super User See other posts from Super User or by Gradient
Published on 2012-08-22T04:55:21Z Indexed on 2012/09/05 15:41 UTC
Read the original article Hit count: 323

Filed under:
|

I'm trying to use some of the French-Canadian keyboard stokes I'm used to on an English keyboard. I would like to change the behaviour of some keys. I was able to implement these changes in Vim, but I would like them to be applied system-wide (for Windows and Ubuntu).

Here's what I want to implement :

  • If I press [a, the character printed is â.

  • When I press [r, something that's supposed to stay normal, the characters printed are [r.

  • If I hold [ for 3 seconds, [ is printed. I want this delay to be applied to all my modified keys.

  • I want to map < to ' and the characters 'e to è.

    The complex problem here is that I only want the ' beside the ; key to produce the è character, NOT when I press the < (remapped to ') then e.

I'll show you a .vimrc file that implements this, now I want this behavior system-wide:

set timeout timeoutlen=3000 ttimeoutlen=100
inoremap [a â
inoremap [A Â
inoremap [e ê
inoremap [E Ê
inoremap [i î
inoremap [I Î
inoremap [o ô
inoremap [O Ô
inoremap [u û
inoremap [U Û

inoremap 'a à
inoremap 'A À
inoremap 'e è
inoremap 'E È
inoremap 'u ù
inoremap 'U Ù

inoremap }e ë
inoremap }E Ë
inoremap }i ï
inoremap }I Ï
inoremap }u ü
inoremap }U Ü

inoremap ]c ç
inoremap ]C Ç
inoremap / é
inoremap < '

© Super User or respective owner

Related posts about keyboard

Related posts about remapping

  • Remapping the Windows key in Parallels

    as seen on Super User - Search for 'Super User'
    I'm running XP on Parallels 4 for Mac, and it's working well enough, however one thing that's bothering me more and more as I go along is the way it constantly assumes every press of the command key means I want the start menu to come up. I've tried to remap it in the Parallels preferences, but all… >>> More

  • Dvorak hotkey remapping in vim, worth it?

    as seen on Super User - Search for 'Super User'
    I've been trying to learn the dvorak keyboard layout of late and I have been making some good progress this time around. The trouble I am finding now is that all of my hotkeys are all in the wrong places. As a vim user this is particularly troubling. I have found good resources to switch the bindings… >>> More

  • Apple keyboard key remapping under Ubuntu

    as seen on Super User - Search for 'Super User'
    I have an Apple keyboard that I simply love. I now hate my regular keyboard at work. I just have a small problem with the Apple keyboard. There is no "insert" key. The one that is usually Insert on regualr keyboard is replaced by the "fn" key. I would like to keep the fn functionality, as it is useful… >>> More

  • Selective Pointer device remapping in linux

    as seen on Super User - Search for 'Super User'
    I just got an HP 2710p (hp tablet, with digitizer), and I've played around with linux for a while now, and thought I would go ahead and install it. Everything works fine, excepting normal tablet functions, which is to be expected. I'm working on the screen rotation, and there are on-screen keyboards… >>> More

  • WPF Keyboard Remapping

    as seen on Stack Overflow - Search for 'Stack Overflow'
    Hello, I am trying to remap the input of a textbox. For example. If a user enters a N then I would like to change it to a 9. I thought it might be best to try and catch it in the PreviewKeyDown event although I will also need to process paste attempts (I can solve that bit I think). Is PreviewKeyDown… >>> More