Why Vim uses hjkl keys as arrow keys
catonmat.net
catonmat.net
https://en.wikipedia.org/wiki/Model_M_keyboard#/media/File:I...
https://upload.wikimedia.org/wikipedia/commons/5/56/IBM_Mode...
I guess someone decided “why not ‘shift lock’ just for letters?”
Funnily enough though, even with all that, I still have a caps lock key. It's on my thumb cluster, and it doubles as my Alt key if I hold it. I use it for caps lock probably a few times a week. I get not putting caps lock where it commonly is on keyboards nowadays (I have control where it commonly is too), but I actually don't agree with getting rid of it entirely.
just that it doesn't need to be in such a promient position.
My capslock is actually escape, which is much more useful. The only thing I'd say is, esc is sometimes an overlooked button in software because it is so out of the way.
I was replying to:
> Caps Lock has no right to be on a modern keyboard.
I think some people really do think capslock should just be removed entirely.
What requires more than a few consecutive capital letters these days?
There's a flawed argument that capitalised keywords make them stand out but I leave that to my editor.
Tab is a bit of a an odd one. It is useful for printing, but almost entirely useless as an input… so useless in fact that it has been repurposed for auto-complete, which is really useful!
Also, I've been using tabs for indentation (with spaces for alignment) in code for decades. Though linters are slowly killing that.
With the Caps Lock position one has to use the pinky to hold it down and the index finger has to stretch more to reach Ctrl+V (unless some use their thumb to hit the V key?). While with Mac style placement you use a thumb for holding the key which naturally occupies the bottom-most row for spacebar, so less finger travel and stretching.
I also tend to just remap capslock to control universally.
My comment was just about the positioning of the key however. I use a keyboard with programmable firmware so I can remap the actual Ctrl key to the same position since it's more comfortable.
Historically pre-UNIX-based-OS Ctrl was lightly used in massive applications that needed more hotkey possibilities (e.g. Photoshop), or used for running PC emulators like Virtual PC. And for the few people on Macs using a terminal to connect to Unix hosts.
Then Mac OS X hit, and it was a happy coincidence that now in a Terminal, you can hit Command-C to copy some text, completely outside the scope of the process running there, or separately, do a Ctrl-C to break the process.
*Mac uses option (Alt) at the OS layer too, but it's to compose variøüs diacriticals and (√•§¢) symbols, so it's highly frowned upon to use "alone" (as in "Option-V" because that should be dedicated to making the √ symbol) - but it's frequently used in combination with Command.
Maybe, maybe not -- all I know is that I use it regularly enough that I'm glad it exists.
[1] https://discussions.apple.com/thread/255159504
[2] https://www.reddit.com/r/MacOS/comments/16vmjfc/oh_no_can_i_...
Then xterm turns alt-<key> into ESC <key> with metaSendsEscape, and tab sends ^I since it's the same in ASCII, so I can deal with CUA interfaces without any change in terminal behavior.
First, I’d like to swap the control and fn keys.
Then I’d like to be able to use the fn modifier in keyboard macro programs (like AutoHotkey on Windows). There are a few already configured (like fn-S for print screen) but most of the fn modified keys do nothing and that feels like a waste. For some reason, the fn key mostly seems invisible to the OS (and it doesn’t seem to matter which OS I use.
Unless you're working on a legacy system and need to program COBOL
My second biggest complaint is that CTRL and ALT keys are the second most important after the SHIFT. But on the laptop I'm typing on, they're super small and placed under the hands, and there's a FN and a WINDOWS button between them on the left hand side, making it hard to hit unless you pull your hand off the keyboard so you can see.
The last complaint is doing super spock pinches for weird macros. CRTL-ALT-SHIFT-Z. The last could be fixed by composing, and not requiring the three keys be pressed down together. The SHIFT letter combinations came from the old typewriters where SHIFT key raised the letters so the upper case keys could be struck. And we've stuck with that for better or worse.
I did not know that. Pretty cool
It's impossible to switch now since everything uses `hjkl` despite some people trying (for instance, the default navigation keys on i3wm are `jkl;` but everyone always changes it to `hjkl`)
I also use Karabiner Elements to bind Caps Lock as a Hyper Key, and then I use Keyboard Maestro to remap Hyper Key + the j/k bindings above to backspace and forward delete.
Big ups, 10/10 would recommend.
Ctrl-H: cursor left
Ctrl-J: cursor down
Ctrl-K: cursor up
Ctrl-L: cursor right
* k: start/stop playing
* l: fast forward 10s
* j: rewind 10s
Also handy:
* m: un/mute (for ads)
Vi has the same model input model as teco/xtec and shares their key press economy. Emacs which started life as a teco macros went the other way. Decades ago I tried both and abandoned Emacs when the finger in charge of the control key started to ache. It was not just slower, it was painfully slower.