Vimium-C is a browser extension for using Vim-like bindings while surfing. Let’s see how we can configure it for the BÉPO keyboard layout.
BÉPO is a French-focused keyboard layout. Every key binding in programs need to be refined because the usual keybindings are more or less accessible. This is especially true for vim-like software, where HJKL becomes CTSR.
Custom key mappings
Like in vim, the first step is to unbind the default key mappings, in order to redefine them with a more ergonomic disposition:
# Scrolling unmap j unmap k unmap h unmap l unmap t #unmap s #unmap c unmap r map t scrollDown map s scrollUp map c scrollLeft map r scrollRight # History unmap H unmap L #unmap C unmap R map C goBack map R goForward # Tabs unmap J unmap K unmap T #unmap S map T previousTab map S nextTab
Characters used for links
When using the leader key for navigating links, the default keys will be accessible on a QWERTY keyboard. As you have guessed, we will need to change this setting as well in order to have an ergonomic experience with our BÉPO layout:
# Default is `sadjklewcmpgh` ubitsrpaxnj,c
Aaaand… that’s it!
This article is mostly for myself, so that when I install the extension on a new browser I can just copy/paste it from here. If it can help others BÉPOists, even better!