Name: saptarshi Date: February 11, 2008 at 00:09:14 Pacific Subject: Search command in Vi for VMS OS: VMS CPU/Ram: NA Model/Manufacturer: NA
Comment:
Hi, Please let me know what is the command that i can type in the Vi editor compiled in the VMS OS for searching for a text string. Basically i want the equivalent of the "/" command for search in Vi unix. cheers Sapti
Hi, Thanks for the response. The thing is that i am very new to VMS. I am not sure whether i am actually running the Vi editor or Vi has been aliased to some other editor. The exact command that i am typing is: "vi abc.c" Is there any way of knowing whether it is actually the vi editor or not?
Hi, I typed this command and the output that i am getting is this: VI == "ED" So, it seems like the Vi is aliased to some 'ED'. Is this a VMS specific editor? If so what is the search command in this editor? Thanks Saptarshi.
Hi, I looked up the reference site that you sent however i haven't found any key with PF on it. I am using a standard DELL keyboard. Does this key exist in current keyboards? I tried opening my file with the command "eve file_name" and it gave the error %DCL-W-IVVERB, unrecognized command verb - check validity and spelling \EVE\
Hi, I tried using the keys P1-P4. P1-P3 says has no definition to it whereas P4 takes the cursor to the end of the line of the file that i have opened. Any other clue??
EVE and EDT are editors steered with the keypad keys, and without having PF1 to PF4 almost nothing can be done. There are two ways to get those 4 keys on non-DEC keyboards, depending on the way You are accessing the VMS system.
If not using Xwindows, but a terminal window: Putty (Windows and Linux) does an acceptable mapping. From a Unix type system, use xterm with a key-remapping: one example is at
If working on an Xwindow system, You can use xmodmap to remap the keypad and/or function keys to the one expected by VMS. Look into some examples at http://wwwvms.mppmu.mpg.de/util_roo... Then see some of the XMODMAP.* files near the bottom of the page. The keycodes of xmodmap files are system/hardware dependent and have to be determined at Your system, using utilities like XEV (in decw$utils:), or more comfortable XKEYCAPS (see link at http://wwwvms.mppmu.mpg.de/~huber/pds/
My PF4 key deletes the line that the cursor is on.
The reason for the differences in keys is the configurability and programmability of EVE / TPU. It can be difficult to relate one installation to another because of all the customization. As it happens, the "raw" editor has almost no keys defined; most commands must be entered at the command prompt (and the command you want is "find"). The default key to invoke the command prompt is "Do" or F16, which is not on a standard PC keyboard. The "find" command is usually mapped to the Find key, which is not labeled as such on a PC keyboard, but which is often mapped as Insert or Home.
Please let us know the results of these VMS commands:
$ show logical tpu$section $ show symbol ed*
Also give us details about your terminal emulation. Probably you are using a PC program that emulates a VT-series terminal; which program is it? Note that commercial emulators, such as Extra! and Reflection, have optional windows that emulate the missing VT-series keys.
As said earlier, Putty does a good job in remapping keypad keys, and it does it per terminal window, independent of the underlying windowing system. Putty is available for Windows and Unix/Linux.
Thanks a lot for the help. Will look into it when i get the time. For the time being have copied the files into Unix and viewing it there :) Thanks again
And finally, if You are working rather infrequently on VMS, You may install editors there, which do not rely on a DEC-(VT-,VMS-)keypad layout. Amongst others are available: VIM http://www.vim.org NEDIT http://www.nedit.org Emacs Jedit (Java based) http://www.jedit.org
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE