[comp.editors] Thanks for Vi under VMS pointers

uucibg@swbatl.UUCP (3929) (10/12/89)

To all those who suggested Gregg Wonderly's implementation of Vi-emulation
on top of VMS/TPU (including Gregg himself).  MANY THANKS!

I pulled the distribution from an archive I have access to locally and will
hopefully install it sometime within the next week.  I greatly appreciate it,
since I now won't have to spend a ton of time learning a new editor.

As for those who wanted more information about it, I found it in the
comp.sources.misc (which was where everyone pointed me)  archives in volume 4
titled "vms-vi-2".  I'm going to get in touch with those folks to work out a way
to get things to them if them don't have access to any archive sites.  One note
though: it requires VMS 5.0 or higher according to one respondent (sp?).
Actually, they said there were some patches that would make it work on some
earlier versions but it was somewhat unclear how solid the patches were or
which versions of VMS they addressed (*no* criticism meant: just trying to pass
on the info.  And please post a follow-up if I got that wrong).

To those who offered to work out ways to get the stuff to me, many thanks also.
I know, I know, I'm babbling almost incoherantly :).  But you don't know how
happy you've made me.... (all this for an editor.  sheesh! )

Oh, and to Gregg Wonderly: "Bless you, my son." (with deep religious
reverance :)

Thanks again,
--------------------------------------------------------------------------------
Brian R. Gilstrap    ...!{ texbell, uunet }!swbatl!uucibg OR uucibg@swbatl.UUCP
One Bell Center      +----------------------------------------------------------
Rm 17-G-4            | "Winnie-the-Pooh read the two notices very carefully,
St. Louis, MO 63101  | first from left to right, and afterwards, in case he had
(314) 235-3929       | missed some of it, from right to left."   -- A. A. Milne
--------------------------------------------------------------------------------
Disclaimer:
Me, speak for my company?  You must be joking.  I'm just speaking my mind.

gregg@cbnewsc.ATT.COM (gregg.g.wonderly) (10/13/89)

From article <862@swbatl.UUCP>, by uucibg@swbatl.UUCP (3929):
> One note
> though: it requires VMS 5.0 or higher according to one respondent (sp?).
> Actually, they said there were some patches that would make it work on some
> earlier versions but it was somewhat unclear how solid the patches were or
> which versions of VMS they addressed (*no* criticism meant: just trying to
> pass on the info.  And please post a follow-up if I got that wrong).

Without a lot of gory details, these are the details.  As of VMS 5.0, several
prevalent bugs in the TPU SEARCH() built in were fixed.  This allowed me
to remove some kludges (work arounds if you don't like that word) from the
code, thus making it possible to have more complicated REs given the limitation
on the length of a string that COMPILE () will accept.  The second change
was that the variable returned from keyboard reads changed from type INTEGER
to type KEYWORD.  They allowed old compatibility by allowing INT(key_value)
to return an INTEGER representation.  The other change that affected TPUVI
was the change in the behavior of SEARCH (pattern, [NO]EXACT, REVERSE).
Previously, it moved one character to the LEFT before starting the
search.  The FORWARD counter part did not.  Thus places were statements of
the form

	IF (CURRENT_DIRECTION = FORWARD) THEN
		MOVE_HORIZONTAL (1);
	ENDIF;

had to be changed to

	IF (CURRENT_DIRECTION = FORWARD) THEN
		MOVE_HORIZONTAL (1);
	ELSE
		MOVE_HORIZONTAL (-1);
	ENDIF;

Those are the big changes which make it impossible to get reasonable
behavior from Version 2 of TPUVI under VMS 4.x (the KEY_NAME problems
will keep it from processing any keystrokes).  If you change these
things back, it will mostly work.  But again, the instability of the
SEARCH() routine will require many little tweaks which I do not
remember anymore  (okay, the pattern ANY("abcd") in 5.x must be written
as (""|ANY("abcd")) in 4.x to match zero characters i.e. [a-d]*, other
problems require "''&" to be prepended to ever pattern to get the
"incremental" search mode turned on, under 5.x this is not necessary).

There are so many other little problems here and there that I just
would rather not support (as if I am anyway) both versions.  I know
that that is not what those of you still using VMS 4.x want to hear,
but I don't have the resources to provide otherwise.

-- 
-----
gregg.g.wonderly@att.com   (AT&T bell laboratories)

allbery@NCoast.ORG (Brandon S. Allbery) (10/19/89)

As quoted from <862@swbatl.UUCP> by uucibg@swbatl.UUCP (3929):
+---------------
| To all those who suggested Gregg Wonderly's implementation of Vi-emulation
| on top of VMS/TPU (including Gregg himself).  MANY THANKS!
> ...
| As for those who wanted more information about it, I found it in the
| comp.sources.misc (which was where everyone pointed me)  archives in volume 4
| titled "vms-vi-2".  I'm going to get in touch with those folks to work out a way
| to get things to them if them don't have access to any archive sites.  One note
| though: it requires VMS 5.0 or higher according to one respondent (sp?).
+---------------

You no doubt noticed the "-2" on the archive name.  The earlier version, if I
remember correctly, is for VMS 4.7; it should be in the same archive sites
that have the VMS 5.0 version.

++Brandon
-- 
Brandon S. Allbery, moderator of comp.sources.misc	     allbery@NCoast.ORG
uunet!hal.cwru.edu!ncoast!allbery ncoast!allbery@hal.cwru.edu bsa@telotech.uucp
161-7070 (MCI), ALLBERY (Delphi), B.ALLBERY (GEnie), comp-sources-misc@backbone
[comp.sources.misc-related mail should go ONLY to comp-sources-misc@<backbone>]
*Third party vote-collection service: send mail to allbery@uunet.uu.net (ONLY)*