Vim-Like Layer for Xorg and Wayland

Dev tools

keyboard remapping

SHOW HN2020

148points
62comments
#409of 3,028 in 2020
Top 14%of 2020 by points

How HN took it

CuriousMostly questions and neutral comments

1 positive, 15 neutral or asking, 1 mixed, 3 critical, out of 20 comments about the project. Thread score -0.12.

Idea: 1 for, 3 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Good idea, useful for custom bindings beyond vim navigation

    From 2 comments
    • Good idea. This could be also useful for assigning custom functionality instead of vim (e.g. window management). Also one can switch backlights/keyboard colors depending of the…
      seqizz on HN
    • As someone who uses Vim daily, I quite like this idea. I would customise it to mimic the original Vim bindings a bit more closely where possible though, to e.g. keep Ctrl-D as…
      Ianvdl on HN

Objections

  • i3 and sway already support binding modes, so the approach is redundant

    From 1 comment
    • They're using sway/i3. I don't understand why they're doing it like that when sway/i3 already has support for modes. They could have just done something like this in the sway/i3…
      jolmg on HN
  • QMK hardware layers do the same job more reliably

    From 2 comments
    • Get a keyboard with layer support, https://docs.qmk.fm/. No need for different modes ...
      kohlerm on HN
    • I've done a similar thing at the hardware level using a QMK layer. The main benefit for me is being able to use VIM movement keys in every text input. As I'm using a dual boot…
      dlkmp on HN

Requests

  • Per-application bindings and preserving Vim keys like Ctrl-D

    From 1 comment
    • As someone who uses Vim daily, I quite like this idea. I would customise it to mimic the original Vim bindings a bit more closely where possible though, to e.g. keep Ctrl-D as…
      Ianvdl on HN
  • Mode indicator in the status bar

    From 1 comment
    • I've been thinking about doing something like this for quite a while. One question that's been bothering me is: How will I know what mode I'm in? Can I somehow change the cursor…
      codethief on HN

Questions

  • How do you know which mode you are in?

    From 1 comment
    • I've been thinking about doing something like this for quite a while. One question that's been bothering me is: How will I know what mode I'm in? Can I somehow change the cursor…
      codethief on HN
  • Does it get confusing when using Vim itself?

    From 1 comment
    • Does this get confusing when you're actually using Vim? Do you ever use Keyboard Normal Mode when you're in Vim?
      Timpy on HN
  • Concrete usage examples or demo?

    From 1 comment
    • Some concrete examples of using it? Did I miss the demo showing some good exemplary behaviour driven by this?
      ggm on HN

Alternatives named

  • Interception Tools

    From 1 comment
    • I am also using a custom keyboard layout (basically the movement layer from the NEO layout + left alt → left ctrl, right alt → left alt, caps lock → esc). Initially it was…
      renke1 on HN
  • QMK firmware

    From 2 comments
    • I've done a similar thing at the hardware level using a QMK layer. The main benefit for me is being able to use VIM movement keys in every text input. As I'm using a dual boot…
      dlkmp on HN
    • Get a keyboard with layer support, https://docs.qmk.fm/. No need for different modes ...
      kohlerm on HN
  • i3 binding modes

    From 2 comments
    • They're using sway/i3. I don't understand why they're doing it like that when sway/i3 already has support for modes. They could have just done something like this in the sway/i3…
      jolmg on HN
    • The NEO keyboard layout (https://neo-layout.org/) which I’m using for over a decade, has a similar concept of a number of additional layers. This is quite handy for having a…
      secure on HN
  • xcape and xkb remapping

    From 2 comments
    • I did the same thing on my Ergodox with QMK, only with emacs/readline bindings. control-M for enter, control-A for beginning of line, control-E for end of line, control-N for…
      simias on HN
    • I'm fan of heavy key mapping customization to boost productivity. The most productive remapping so far which I made is to globally remap (via xkb) Left Alt + HJKL to respective…
      npmisdown on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/24280413)