News for hackers. Stuff that matters.
Re:Staying the hell out of insert mode (vi) by WildUtah on Monday April 26, 2010 @09:36PM (#1296848)
I've remapped caps lock to ESC

I find that Mac keyboards are very difficult to remap. Is there any reason for that? Or maybe there's some utility that handles remapping I just can't find. Buggy as it is, I miss xmodmap.

Re:Staying the hell out of insert mode (vi) by banjiewen on Monday April 26, 2010 @10:07PM (#1296927)
If you're just remapping modifier keys, the Keyboard prefs pane works well (not sure if it's part of Leopard, though).

If you want to map something to ESC, try PCKeyboardHack: http://pqrs.org/macosx/keyremap4macbook/extra.html

Re:Staying the hell out of insert mode (vi) by cloudhead on Monday April 26, 2010 @10:15PM (#1296951)
You can remap the modifier keys (Caps Lock, Alt, Cmd) from the preferences pannel, in Keyboard. There's a button at the bottom, called "Modifier Keys..."
Re:Staying the hell out of insert mode (vi) by idoh on Tuesday April 27, 2010 @12:50AM (#1297240)
This is true but that utility won't let you remap Caps to Esc.
Re:Staying the hell out of insert mode (vi) by chancho on Monday April 26, 2010 @10:21PM (#1296964)
Very good Mac keyboard remapper: http://scripts.sil.org/ukelele