News for hackers. Stuff that matters.
Re:Show HN: I automated 1/2 of my typing by nojs on Wednesday August 30, 2023 @08:27PM (#37330990)
> expanding "t" to "the" seems like a no-brainer, just like "st" to "something"

I have jk mapped to escape in vim, and for a key combo that seems like it should never occur naturally, I’m often surprised how often it misfires when I actually need to type “jk”.

Globally remapping hundreds of things like “t” and “st” would actually be quite frustrating I think.

Like imagine you’re emailing your friend about a trip to st petersburg, or about some code containing the variable t, etc.

Re:Show HN: I automated 1/2 of my typing by theptrk on Wednesday August 30, 2023 @08:44PM (#37331109)
You gotta try “fd”
Re:Show HN: I automated 1/2 of my typing by xigoi on Thursday August 31, 2023 @07:44AM (#37335679)
Try mapping both jk and kj to Escape, then set 'timeout' really low in insert mode so you have to press the keys simultaneously.
Re:Show HN: I automated 1/2 of my typing by jayknight on Thursday August 31, 2023 @09:57AM (#37337223)
>I have jk mapped to escape in vim, and for a key combo that seems like it should never occur naturally, I’m often surprised how often it misfires when I actually need to type “jk”.

I saw that great recommendation somewhere so immediately set that up in vim. But those are my initials, and usually the beginning of my username... So took that out real quick.

-jk