News for hackers. Stuff that matters.
Re:Writing an editor in less than 1000 lines of code, just f... by Someone on Sunday July 10, 2016 @03:31PM (#12066880)
Just look at your keyboard :-)

(https://en.m.wikipedia.org/wiki/ADM-3A#Legacy)

I always try to remember them by noting that the leftmost key moves left, the rightmost key moves right (not too hard), and that 'K climbs' (using alliteration to remember that). That leaves 'J' for cursor down.

In practice, though, I use the cursor keys. Luckily, they work on the editors/systems I work on nowadays. Side effect is that I am very bad at remembering those mnemonics.

Re:Writing an editor in less than 1000 lines of code, just f... by robgough on Sunday July 10, 2016 @04:57PM (#12067235)
I stole the following from a colleagues `.vimrc` which finally allowed me to learn `hjkl`. Now I forget I have this set, and when I do accidentally use an arrow key it makes me laugh.

    map <Left> :echo 'damnit!'<cr>
    map <Right> :echo 'you suck!'<cr>
    map <Up> :echo 'this is why you fail'<cr>
    map <Down> :echo 'nooooo!'<cr>
Re:Writing an editor in less than 1000 lines of code, just f... by repsilat on Monday July 11, 2016 @01:58AM (#12069148)
> K climbs

Lower-case 'k' has an ascender, lower-case 'j' has a descender.

https://en.wikipedia.org/wiki/Ascender_(typography) https://en.wikipedia.org/wiki/Descender

Re:Writing an editor in less than 1000 lines of code, just f... by somethingsimple on Sunday July 10, 2016 @08:49PM (#12068119)
Off-topic: I love your username. See https://news.ycombinator.com/item?id=12068116