Skip to content

Instantly share code, notes, and snippets.

@Earnestly
Last active February 22, 2022 10:20
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Earnestly/7608794 to your computer and use it in GitHub Desktop.
Save Earnestly/7608794 to your computer and use it in GitHub Desktop.
Basic vi-like emulation using llpp's new keymapping. Also some other defaults and examples for custom fonts.
<llppconfig>
<ui-font size='18'>
<![CDATA[/home/earnest/.local/share/fonts/Fontin-Regular.otf]]>
</ui-font>
<defaults zoom='100'
auto-scroll-step='12'
horizontal-scroll-step='24'
case-insensitive-search='true'
uri-launcher='$BROWSER &quot;%s&quot;'
path-launcher='$TERMINAL &quot;%s&quot;'>
<keymap mode='global'>
<!-- Use emacs style motion in menus -->
<map in='ctrl-n' out='down'/>
<map in='ctrl-p' out='up'/>
<map in='ctrl-f' out='pgdown'/>
<map in='ctrl-b' out='pgup'/>
<map in='ctrl-[' out='esc'/>
<map in='ctrl-c' out='esc'/>
</keymap>
<keymap mode='birdseye'>
<map in='h' out='left'/>
<map in='j' out='down'/>
<map in='k' out='up'/>
<map in='l' out='right'/>
<map in='u' out='ctrl-k'/>
<map in='d' out='ctrl-j'/>
<map in='ctrl-u' out='ctrl-k'/>
<map in='ctrl-d' out='ctrl-j'/>
<map in='f' out='pgdown'/>
<map in='b' out='pgup'/>
<map in='f11' out='f'/>
</keymap>
<keymap mode='view'>
<map in='h' out='left'/>
<map in='j' out='down'/>
<map in='k' out='up'/>
<map in='l' out='right'/>
<map in='u' out='ctrl-k'/>
<map in='d' out='ctrl-j'/>
<map in='ctrl-u' out='ctrl-k'/>
<map in='ctrl-d' out='ctrl-j'/>
<map in='f' out='pgdown'/>
<map in='b' out='pgup'/>
<map in='tab' out='o'/>
<map in='f11' out='f'/>
</keymap>
</defaults>
</llppconfig>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment