Things that could be done to improve vi

Daniel R. Levy levy at ttrdc.UUCP
Fri Oct 17 14:05:10 AEST 1986


In article <936 at kbsvax.steinmetz.UUCP>, barnettb at vdsvax.uucp (Barnett Bruce G) writes:
>In article <89 at houligan.UUCP> dave at murphy.UUCP writes:
>>I would like to see a couple of things in vi that would make it a little less
>>frustrating to use in certain applications.  They are:
>
>Try putting in .exrc
>	:map! a A
>	:map! b B
>	:map! c C
>	.
>	.
>	.
>	:!map! z Z
>
>Anytime you type (in insert mode) an `a', the editor with map it into `A'

Also when you type a lowercase letter in ex command mode the editor will map
it too!  I just tried it out of curiosity.  Not much fun.  It takes a lot of
^V quoting to recover (:^Vu^Vn^Vm^Va^Vp! a<RETURN>  :^Vu^Vn^Vma^Vp! b etc...).

>What's that you say? You don't want this all the time?
>just put it in a file calls `.f' - for fortran, and type
>
>	:source .f
>when you want fortran mode.
...
>
>bruce barnett
>chinet!steinmetz!vdsvax!barnettb
-- 
 -------------------------------    Disclaimer:  The views contained herein are
|       dan levy | yvel nad      |  my own and are not at all those of my em-
|         an engihacker @        |  ployer or the administrator of any computer
| at&t computer systems division |  upon which I may hack.
|        skokie, illinois        |
 --------------------------------   Path: ..!{akgua,homxb,ihnp4,ltuxa,mvuxa,
	   go for it!  			allegra,ulysses,vax135}!ttrdc!levy



More information about the Comp.unix mailing list