Re:My Favorite Vim Oneliners for Text Manipulation
by yjftsjthsd-h on Sunday August 06, 2023 @01:37AM
(#37019273)
It really is funny how much vi's odd-looking key choices aren't odd at all once you see the keyboard it was developed on:)
Re:My Favorite Vim Oneliners for Text Manipulation
by gjvc on Sunday August 06, 2023 @12:48PM
(#37023871)
The value of being taught something by an expert.
Re:My Favorite Vim Oneliners for Text Manipulation
by tylerhou on Sunday August 06, 2023 @02:25AM
(#37019480)
I didn't know about the history, thanks for sharing!
(j = downarrow was a mnemonic I used while learning vim.)
Re:My Favorite Vim Oneliners for Text Manipulation
by semi-extrinsic on Sunday August 06, 2023 @03:59AM
(#37019873)
Here is a direct link to the ADM-3A keyboard layout:
https://en.wikipedia.org/wiki/ADM-3A#/media/File:KB_Terminal...
> The use of the HJKL keys for moving the cursor in the vi editor and its descendants originated from the ADM-3A [...] The ←, ↓, ↑, → and Home labels printed on the H, J, K, L, and ~ ^ keys were a visual reference to the control characters Ctrl+H, Ctrl+J, Ctrl+K, Ctrl+L, and Ctrl+~ ^ that were required to move the cursor left, down, up, right, and to the top/left corner (or "Home" position) of the terminal, respectively [...] The Ctrl+H and Ctrl+J functions were the standard ASCII backspace and line feed respectively, but the interpretations of Ctrl+K, Ctrl+L, and Ctrl+~ ^ were new to the ADM-3A.
Seems almost a happy accident. I personally like the placement because the most common movement in a document is down and it's placed right under the most dextrous finger, the index finger, by a coincidence between ASCII encoding and QWERTY layouts. Up being the second most common movement was put under the second most dextrous finger. Nice.