[comp.editors] Word completion in vi

s887212@minyos.xx.rmit.oz (Stephen Riehm [Romulis]) (10/04/90)

I just recently subscribed to this group and thus got the titles of some
old notes (which were no longer kept on our server) gegarding word
completion in vi. Could someone please either post or email me a summary
of what resulted from that discussion.

Also is there any news of the next update to the BSD vi??? 
I am using version SVR3.1 (SV = SysV in the bsd directory?) at the moment
and quite like it, but there are just a few things that I think should be
"altered". ie: the ~ command should work like c and d etc rather than a
single character operator. 
any comments?


============================================================================
Romulis [Stephen Riehm]	            Royal Melbourne Institute of Technology,
					       (124 Latrobe St., Melbourne.)
s887212@minyos.xx.rmit.oz.au					   Australia.

@>---`--,--( Still Stuck on the wrong side of the deep pink sea )--.--'---<@
Disclaimer: I don't have any views!
============================================================================

javey@hybrid.UUCP (shahram javey) (10/06/90)

How can the case of a word be changed without having to count the
length of word yourself. Can a marco be written for this purpose?
For example, it would be nice if ~w would change the case of every
letter of the word. 
 
thanks...sj

lee@sq.sq.com (Liam R. E. Quin) (10/13/90)

javey@hybrid.UUCP (shahram javey) writes:
>How can the case of a word be changed [...] ?

Here is a macro that will do that.  Not as elegant as it could be, but...
This goes from upper to lower case.  To go the other way, you need to
use \L instead of \U, or, if on a sun with broken \L, use \l and put a g
just after the last z.

:map! ^B ^V^V ^V^[bywPbi:s/!\(^V^[els\)/\U\1/!^V^[F:"zd3f/@z^V^M
" Above line makes ^B turn the last word you typed into uppercase [lee@sq]
"

Lee

-- 
Liam R. E. Quin,  lee@sq.com, SoftQuad Inc., Toronto, +1 (416) 963-8337