Operating System - HP-UX
1752717 Members
5708 Online
108789 Solutions
New Discussion юеВ

Re: using vi editor in hp-ux

 
SOLVED
Go to solution
Patrick Wallek
Honored Contributor

Re: using vi editor in hp-ux

>>.vimrc is the file where you set your
>>environment for the vi editor,

NO, that is NOT correct.

.vimrc is used for the VIM editor (VI Improved). VIM is **NOT** what is included with HP-UX.

For the **STANDARD VI** editor that is included with HP-UX, you must use the .exrc file in your home directory.
avizen9
Esteemed Contributor

Re: using vi editor in hp-ux

hello,

here is very good document for it, to undestand vi editor, please go through it spend only an hour you will be master for vi editor :)..

http://www.docs.hp.com/en/B2355-90164/ch04.html

you can not compare linux vi editor with Unix both are diff,
Suraj K Sankari
Honored Contributor

Re: using vi editor in hp-ux

Hi,
x is using for a single character

for more information please check the below link

http://thomer.com/vi/vi.html

suraj
Steve Post
Trusted Contributor

Re: using vi editor in hp-ux

Your delete and backspace keys have not been mapped. Apparently they are mapped on linux. Mess with the .exrc file as suggested above.

delete key ---> x
backspace key ----> h

It is also possible the backspace key does not work on a normal prompt.
If you hit a backspace and you get junk on the screen?
Fine. Type this:
stty erase
Then hit the backspace
Then hit return
Now you backspace will work for this terminal session.

steve
Steven Schweda
Honored Contributor

Re: using vi editor in hp-ux

> Your delete and backspace keys have not
> been mapped. Apparently they are mapped
> on linux. [...]

Apparently you're not a big Linux user. More
likely, "vi" on the (unspecified) Linux
system is actually "vim", which has
considerably more features than the stone-age
"vi" on (an unspecified version of) HP-UX.

"vi --version" on the Linux system might be
informative.