On Jan 21, 2012 at 02:27 PM -0500, Eric Weir wrote:
Thanks, Dotan. Will do.

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

--
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

Reply via email to