Hacker News new | ask | show | jobs
by alex_h 4825 days ago
Remapping Caps Lock to Control is a worthwhile alternative for heavy bash/vim users. Makes shortcuts lie Ctrl-D a lot more natural to type. Besides, it's super simple to do in OSX settings.
2 comments

Not only vim but also emacs. In fact, OS X affords an emacs readline-like capability throughout all text fields (just like bash). So you can use C-d to delete characters, C-e to go to the end of line, C-a to go to the beginning of a line, and a ton of other shortcuts mapped to Ctrl.
I use a modified US layout on OS X for retaining proper touch typing posture while using emacs: http://cl.ly/image/372T2o2X0T0r

Symmetric Ctrl keys that are easily reachable from home row makes a huge difference. I've moved '\' key to 'Insert' because I never use 'Insert' key (before that I'd configured Right Shift to insert '\' when it is not used as a modifier and insert '|' when I press both Shift keys at once but I couldn't set this up using Xmodmap so I went with a cross platform solution).

Doing this is definitely worth it -- in fact, it's how vi was meant to be used [0].

Also, it's worth noting that on OSX you can do this without any additional software. Just remap it in the keyboard settings.

[0] http://www.catonmat.net/blog/why-vim-uses-hjkl-as-arrow-keys...