Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

emacs user! another to be expunged.

all hail <esc> as caps lock!

    for on that day,
        all shall be in normal mode,
      on the day of text
        one will `export EDITOR=/usr/bin/vim`
-- from the book of vim 2:12


The best way to deal with Caps Lock is to make it a Control Key when used as a modifier (held down when another key is pressed), but Escape when typed by itself. There's a program for GNU/Linux called xscape that does exactly that.


That sounds great! I am trying it right now...

FYI it's here: https://github.com/alols/xcape


You should be able to do that with only XKB, but Xorg XKB seems somewhat buggy and the documentation is scattered, so you'd have a bit of work ahead of you.


I use vim and have caps lock bound to control. I use Ctrl-[ to switch to normal mode and ctrl is so much more useful outside of just vim.


I remapped jj to esc, for what it's worth, so I don't have to reach for anything. I'm one of the Capslock-as-ctrl people as well, and a vim user.


me too


I have done no remapping but Ctrl-[ is very good for my wrists.


Spacemacs! Spacemacs! Spacemacs!


I'm actually a Vimmer :)


a

Get over yourself! ed(1) is the TRUE text editor.

.

wq




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: