31.11 Typing in Uppercase Without CAPS LOCK
[You may want to input text in all uppercase letters - maybe for a FORTRAN program. Using CAPS LOCK in vi can be a pain because you have to release CAPS LOCK almost every time you want to type a vi command. Here's a nice way to type lowercase letters during input and ex modes; they'll be mapped to uppercase automatically. -JP]
Try putting this in your .exrc (30.6 ) file:
map! a A map! b B map! c C ... map! z Z
Anytime you type (during text-input mode) an
when you want FORTRAN mode.
Of course, you can
define a function key (31.2
[After that, anywhere you want a lowercase letter, type CTRL-v first
to temporarily cancel the map.
For example, to type the command
You can also go into the ex
command mode by typing
- in net.unix on Usenet, 9 October 1986