Monday, November 22, 2010

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

2010/11/22 Rob <r0bjl@yahoo.co.uk>:
>> Check :help inoremap
>>
>> 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?


Maybe it would be more easy if you write also the code in lowercase
and some hotkey to a function which selects the code (excluding string
literals) with regular expression and then make it all upercase with
'U' command.

This way you only need to press that hotkey just after (writting and)
executing the code.


...More elaborated idea could be to define BufWrite autocommand for
fortran files.


--
Joan Miquel Torres__________________________________
Linux Registered User #164872
http://www.mallorcaweb.net/joanmiquel
BULMA: http://bulma.net http://breu.bulma.net/?l2301

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