# HG changeset patch # User Ludovic Chabant # Date 1322030932 28800 # Node ID 6b831735c092e147ff981c33ac0740453ddeea76 # Parent b5f45325f37a9e840ff978905cff8db415248502 Added french keymap support. diff -r b5f45325f37a -r 6b831735c092 vim/keymap/french.vim --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vim/keymap/french.vim Tue Nov 22 22:48:52 2011 -0800 @@ -0,0 +1,78 @@ +" Vim keymap for French keyboards. +" +" This keymap is mainly for using a french keyboard in insert mode +" while using a physical US keyboard. +" +" The keymap should be pretty exhaustive and natural. The only exception +" is the *μ key (mapped to \| on a US keyboard), which is probably +" placed above the ENTER key instead of next to it, as it is on real +" french keyboards -- but that's a limitation of mapping 2 different +" layouts together. +" +" Maintainer: Ludovic Chabant +" Last Changed: 2011 nov 22 + +let b:keymap_name = "fr" + +loadkeymap +Q A +q a +W Z +w z +A Q +a q +; m +: M +Z W +z w +` ² +1 & +2 é +3 " +4 ' +5 ( +6 - +7 è +8 _ +9 ç +0 à +- ) +! 1 +@ 2 +# 3 +$ 4 +% 5 +^ 6 +& 7 +* 8 +( 9 +) 0 +_ ° +m , +M ? +, ; +< . +. : +> / +/ ! +? § +' ù +" % +\\ * +| μ +[ ^ +{ " +] $ +} £ + ~ + # + { + [ + | + ` + \ + ^ + @ + ] + } + diff -r b5f45325f37a -r 6b831735c092 vim/vimrc --- a/vim/vimrc Tue Nov 22 19:32:05 2011 -0800 +++ b/vim/vimrc Tue Nov 22 22:48:52 2011 -0800 @@ -151,11 +151,14 @@ let g:miniBufExplMapCTabSwitchBufs = 1 " Custom mappings. -let mapleader="\\" +let mapleader="," " MiniBufExplorer mappings map e :MiniBufExplorer " Open NERDtree map n :NERDTreeToggle +" Switch between FR and US keyboard layouts +map fr :set keymap=french +map us :set keymap= " Temporary stuff "let mapleader="," " Use , as Leader