" bepo.vim - plugin vim pour disposition de clavier bépo " " vim: foldmethod=marker if exists('g:loaded_bepo') || &compatible finish else let g:loaded_bepo = 1 endif " vim-surround {{{1 let g:surround_no_mappings = 1 " delete surround nmap dè Dsurround " change surround nmap lè Csurround " add surround nmap yè Ysurround " add surround with new line nmap yÈ YSurround " surround line nmap yèè Yssurround " surround line with new line nmap yÈè YSsurround nmap yÈÈ YSsurround " visual surround xmap È VSurround " visual surround with new line xmap gÈ VgSurround " insert surround imap è Isurround " insert surround with new line imap È ISurround " Échange É et W{{{1 " ------------------ " On remappe W sur É : noremap é w noremap É W " Corollaire: on remplace les text objects aw, aW, iw et iW " pour effacer/remplacer un mot quand on n’est pas au début (daé / laé). onoremap aé aw onoremap aÉ aW onoremap ié iw onoremap iÉ iW " Pour faciliter les manipulations de fenêtres, on utilise {W} comme un Ctrl+W : noremap w noremap W " Échange [HJKL] -> {CTSR}{{{1 " ---------------------------- " {cr} = « gauche / droite » noremap c h noremap r l " {ts} = « haut / bas » noremap t j noremap s k " {CR} = « haut / bas de l'écran » noremap C H noremap R L " {TS} = « joindre / aide » noremap T J noremap S K " Corollaire : repli suivant / précédent noremap zt zj noremap zs zk " Échange {HJKL} <- [CTSR]{{{1 " ---------------------------- " {J} = « Jusqu'à » (j = suivant, J = précédant) noremap j t noremap J T " {L} = « Change » (l = attend un mvt, L = jusqu'à la fin de ligne) noremap l c noremap L C " {H} = « Remplace » (h = un caractère slt, H = reste en « Remplace ») noremap h r noremap H R " {K} = « Substitue » (k = caractère, K = ligne) noremap k s noremap K S " Corollaire : correction orthographique noremap ]k ]s noremap [k [s " Désambiguïsation de {g}{{{1 " --------------------------- " ligne écran précédente / suivante (à l'intérieur d'une phrase) noremap gs gk noremap gt gj " onglet précédant / suivant noremap gb gT noremap gé gt " optionnel : {gB} / {gÉ} pour aller au premier / dernier onglet noremap gB :exe "silent! tabfirst" noremap gÉ :exe "silent! tablast" " optionnel : {g"} pour aller au début de la ligne écran noremap g" g0 " Chevrons <> en direct{{{1 " ------------------------- noremap « < noremap » > " Réaffecter la gestion des fenêtres{{{1 " -------------------------------------- " Directions noremap wt j noremap ws k noremap wc h noremap wr l " Raccourcis pratiques sur ^W noremap wd c noremap wo s noremap wp o noremap w :split noremap w :vsplit