Thursday, January 26, 2012

Re: Alias on/off?

On Thu, 26 Jan 2012, Dotan Cohen wrote:

> Is there a way to turn 26 alias on and off with a single command? My
> line of thinking is to enable CapsLock in VIM itself, as opposed to in
> the OS, so that it will only affect input mode. Can this be done?

See: http://vim.wikia.com/wiki/Insert-mode_only_Caps_Lock

The gist: use a keymap, which doesn't affect normal/visual mode, but
does change keys in insert mode and searches.

There's a sample keymap on that page, which swaps A-Z and a-z. I posted
a keymap on this list at some point which swaps the case of everything
in Unicode that has a mapping to the opposite case:

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

--
Best,
Ben

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

No comments:

Post a Comment