On 2011/3/12 2:45, Benjamin R. Haskell wrote:
On Fri, 11 Mar 2011, H Xu wrote:

Hello,

Is it possible to reverse uppercase letter and lowercase letter when
Caps Lock is on? Sometimes normal mode commands are uncomfortable to
use when Caps Lock is on. When Caps Lock is on, For example, Shift + I
would lead to the effect of 'i', which makes me very uncomfortable.

Instead of using CapsLock, you can use this keymap that I just uploaded:

http://benizi.com/vim/swapcaps.vim

It's UTF-8-encoded... (will fix that in the hosting config later).

To install, put it in ~/.vim/keymap/swapcaps.vim
Then to use:
:set keymap=swapcaps

There are probably other methods to make using it more convenient, but
setting the 'keymap' option should get you started. The keymap applies
only in insert mode, so solves the original problem you're having.


This works fine for me. Thanks.

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