It’s broader than a Neovim specific mapping, I’ve changed the system keyboard mapping of <Caps Lock> to <Esc> and <F9> to <Caps Lock>.

I think mapping <Caps Lock> to <Esc> isn’t uncommon for Neovim users. But I like having <Caps Lock> available for non Neovim purposes.

  • dm319@feddit.uk
    link
    fedilink
    English
    arrow-up
    4
    ·
    5 months ago

    Yes, I also have caps mapped to esc, but done in keyboard firmware so that holding it functions as ctrl.

    In neovim I have two escapes mapped to :noh

    • dm319@feddit.uk
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      5 months ago

      Just to clarify - means two taps of the esc key in succession will clear highlighting (ps I’m curious how other people do it!).

      nmap <esc><esc> :noh<return>