Monday, November 22, 2010

Re: caps lock invert in insert mode? (Fortran 77 editing)

On Mon, Nov 22, 2010 at 8:52 PM, Rob <r0bjl@yahoo.co.uk> wrote:
>> >> For e.g,
>> >> :inoremap a A
>> >> :inoremap A a
>> >
>> > Thanks, but I can't get this to work.  Am I correct
>> in thinking that having done this, typing 'a' in insert mode
>> should insert 'A' and vice versa?
>> >
>> > I would need to setup 52 inoremaps and possibly
>> functions to turn them all on or off?
>> That is correct..
>>
>> Ofcourse, you can put a loop instead of 52 explicit maps.
>> Something like:
>
> Thanks, that would be exactly what I need, except that the inoremap examples above have no effect for me.  I presume it works for you.  I am using vim 7.3 in a console.

Hmmm.. can't imagine why.. I checked the functions, they work for me
(in console environment as well). What is the value returned when you
do:
:echo &enc
and
:echo &tenc
and
:set

Can you check with just a single character?
Do,
:inoremap a A
and check if typing 'a' gives you 'A'

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