logoalt Hacker News

raincoleyesterday at 9:07 PM2 repliesview on HN

Only slightly related, but what increased my code typing speed the most is this (AutoHotKey 2):

; CapsLock + J/K -> ( )

CapsLock & j::SendText "("

CapsLock & k::SendText ")"

; CapsLock + U/I -> [ ]

CapsLock & u::SendText "["

CapsLock & i::SendText "]"

; CapsLock + L/: -> { }

CapsLock & l::SendText "{"

; SC027 = physical ;/: key on a US keyboard

CapsLock & SC027::SendText "}"

; CapsLock + O/P/M/E -> _ + - =

CapsLock & o::SendText "_"

CapsLock & p::SendText "+"

CapsLock & m::SendText "-"

CapsLock & e::SendText "="


Replies

SoftTalkeryesterday at 10:14 PM

I've tried this sort of thing but then your muscle memory works against you when you have to use a "normal" keyboard.

Even remapping Cap Lock to Control, which I do, trips me up for a few minutes when I need to work on any other computer that has not been set up that way.

show 1 reply
godd2today at 1:55 AM

Dude, just use vim.

show 1 reply