2 ms·
Weren't "hjkl" cursor keys on the machine Bill Joy was writing vi on?
by jrockway 17y ago
Weren't "hjkl" cursor keys on the machine Bill Joy was writing vi on?
- jacquesm 17y agoYes, ctrl-h = backspace (go left), ctrl-j = linefeed (go down), ctrl-k = reverse linefeed (go up). The only miss in this scheme is ctrl-l which normally would be a form feed but it's easy enough to remember. When you look at it like that it makes perfect sense to put your cursor control on hjkl (at least for people that know the ascii control codes...). I don't know which modifier on the original keyboard made it work that way but I guess it was simply the control key (because that makes the most sense given the above). Would be nice to be sure though! (in vi it does the trick by not using a modifier at all, but by a mode switch). edit: here is a picture of the machine: http://www.vintage-computer.com/otheritems.shtml http://www.vintage-computer.com/otheritems.shtml (top one) You can barely make out the extra squiggles on the keyboard, above the h j k and l are the arrows. edit2: http://en.wikipedia.org/wiki/Vi http://en.wikipedia.org/wiki/Vi shows the keyboard in more detail (but gets the location of the arrows wrong), it is interesting that 'line-feed' (10) and 'enter' (13) have separate keys. Useful when you're copying from your terminal straight to a lineprinter and you want some extra space :)