Operating System - OpenVMS
1751804 Members
5199 Online
108781 Solutions
New Discussion юеВ

Looking for an editing program in VMS??

 
ngoht20
Frequent Advisor

Looking for an editing program in VMS??

Is there an editing program like "Vi" that I can execute from the DCL command???

Because I want to write notes for myself using some kind of editing app sort of like Vi used in UNIX.

thanks
26 REPLIES 26
Hein van den Heuvel
Honored Contributor

Re: Looking for an editing program in VMS??

What's wrong with $EDIT or good old $EDIT/EDT ?

There are VI implementation for OpenVMS.
http://thomer.com/vi/vi.html#versions
- VIM http://www.vim.org/htmldoc/os_vms.html
- VILE http://www.openvms.compaq.com/freeware/freeware50/vile092/
- GNV VI (tpu based) http://h71000.www7.hp.com/opensource/gnvreadme_first.html

Personally, for quick notes I just used $CREATE notes.txt
or
$APPEND TT: my-notes.txt


hth,
Hein van den Heuvel
Robert Gezelter
Honored Contributor

Re: Looking for an editing program in VMS??

ngoht20,

As Hein has noted, there is many editors available on OpenVMS, including several implementations of vi (I refer you to his response for a list of vi implementations).

Natively, there are also a variety of editors:
- TPU (the default for the EDIT command)
- EDT (a screen and line based editor originally from the RSX-11 family)
- TECO (a character based editor that goes back many many years, long before the PDP-11 or VAX was on the scene)
- SLP (a batch editing program)

All of the above are fully documented.

- Bob Gezelter, http://www.rlgsc.com
ngoht20
Frequent Advisor

Re: Looking for an editing program in VMS??

Thanks!!!!!!

EDIT is amazing...

But one question. How can I save on what I had wrote in EDIT and then retreive it later so I will not have to writ the whole letter again??

Thanks

ngoht20
Frequent Advisor

Re: Looking for an editing program in VMS??

For example. I had created a memo outline in EDIT, so I will I save this memo and then be able to re-open it again without writing the same stuff all over again???

Can someone please provide or post me an example command on how to do this? Thanks.
ngoht20
Frequent Advisor

Re: Looking for an editing program in VMS??

When I save stuff in EDIT that I had wrote in, if I give that a filename to save, what format should it be named?

Like this???

mydocument.txt or what??
ChaimBu
Frequent Advisor

Re: Looking for an editing program in VMS??

OpenVMS does not restrict you in any way as to how to name files. However, there are unwritten conventions, and accordingly you should save your files with a .TXT extension.

Thus if you saved the file and named it myfile.txt then when you want to reedit it at some later time, all you have to do is:

$edit myfile.txt

It's as simple as that!

Good luck!

Chaim
ngoht20
Frequent Advisor

Re: Looking for an editing program in VMS??

OK, once I am in EDIT and after I write my stuff or whatever....How can I SAVE that file???

How can I save as MYFILE.TXT in the first place???

Hein van den Heuvel
Honored Contributor

Re: Looking for an editing program in VMS??

While at the OpenVMS command line try:

$HELP EDIT
and answer /TPU to the next prompt.

While in the editor touch the PF2 key (above 8 on num keypad) or the PF4 key (top right on keypad) and type HELP there.

To save the file, just exit the editor with control-Z (the universal end-of-input character in OpenVMS). Or do that PF4 thing using the WRITE and EXIT commands.

Note be sure to check your terminal emulator for keyboard mapping settings.

Good luck,
Hein.
ngoht20
Frequent Advisor

Re: Looking for an editing program in VMS??

For example:

I want to create an outline form using a text editoe in VMS.

First, I want to save the file as MYFILENAME.TXT and then proceed to write my notes...

Now, the next step, how would I SAVE that file in order for me to reopen that file name in order for everything to be intaact the way I wrote the memo??

Please ---- Can someone please post the exact steps in order to this??

Examples are great..thats how I learn by someone giving me the exact detail steps on how to do this...