On Jan 21, 2012, at 2:52 PM, Tim Gray wrote: > Instead of switching Capslock and ESC, you could remap something to ESC in > Vim. For example, I use: > > inoremap jj <ESC> > > This lets me type 'jj' in insert mode to return to normal mode. If you have > to type a word with the letter 'j' in it, as long as you keep typing nothing > changes. The only time it would affect your behavior at all is if you needed > to type two 'j's in a row. Then you just have to wait a second before typing > the second 'j'. And how often do you type 'jj' together? (several times for > this email :) ) > > But, if you really want to remap modifier keys in OS X, go to System > Preferences, Keyboard, then select the Keyboard tab and hit the 'Modifier > Keys...' button on the bottom right. This is system wide, not just in Vim. > Note that you can't actually remap ESC - it's not one of the options. So, > you either need to download a 3rd party solution or do something Vim > specific. This page might give you some ideas: > > http://stackoverflow.com/questions/127591/using-caps-lock-as-esc-in-mac-os-x
Thanks, Tim. I'll have to go back and study at that link. But I'm really interested in a vim-specific solution. I'm pretty sure I don't want to do it system-wide. You're remapping of jj seems like it would do the job. [Curious: Does ESC continue to function as ESC? ------------------------------------------------------------------------------------------ Eric Weir "With an ounce of willingness, everything can change." - Kim -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
