News for hackers. Stuff that matters.
Re:Vim Anti-Patterns by foo101 on Wednesday October 05, 2016 @01:16PM (#12645764)
Moving to the far left-corner of the keyboard to reach Escape has been a major annoyance for me. On the other hand, the Caps Lock key on my keyboard is almost useless. I never use that key. Is there a way to map Caps Lock to Escape in Vim?
Re:Vim Anti-Patterns by minitech on Wednesday October 05, 2016 @04:16PM (#12647418)
Run setxkbmap in your .xinitrc if applicable:

  setxkbmap -option caps:escape
Linux desktop environments’ keyboard configuration tools should also let you do this.
Re:Vim Anti-Patterns by foo101 on Thursday October 06, 2016 @08:58AM (#12652017)
I am using Windows. Is there a lightweight solution to map Caps Lock to Escape on Windows?
Re:Vim Anti-Patterns by jackrh on Thursday October 06, 2016 @11:20AM (#12653205)
Copy and paste the below into a .reg file and run it. I used Sharp Keys ( https://sharpkeys.codeplex.com/ ) to create it, but since every major Windows 10 update resets your key mappings I just extracted it from the registry and double click the reg file after each update.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] "Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,01,00,3a,00,00,00,00,00

Re:Vim Anti-Patterns by yakshaving_jgt on Wednesday October 05, 2016 @03:59PM (#12647263)
I map Caps Lock to Escape, but I had to do it system-wide on MacOS.