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: 355
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