- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: using vi editor in hp-ux
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2009 04:33 AM
тАО03-31-2009 04:33 AM
I am using vi editor in HP-UX.
I am not able to delete characters by using keys "del" and "back space".
But i can use this same method in linux.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2009 04:40 AM
тАО03-31-2009 04:40 AM
Re: using vi editor in hp-ux
Dear Senthil
if u want a delete character u can use x and if u want a line u can use dd
if u want 5 lines
5dd etc... ok
try
sajjad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2009 04:43 AM
тАО03-31-2009 04:43 AM
Re: using vi editor in hp-ux
vi on hpux is different then linux. In linux most people use bash shell which supports those features.
In HP-UX you should use vi keys (x-key to delete and h-key to move one character left)
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2009 04:44 AM
тАО03-31-2009 04:44 AM
Re: using vi editor in hp-ux
Use 'vi' and the keys that were meant for it. The "x" deleles a single character.
See the 'vi' manpages for more.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2009 04:46 AM
тАО03-31-2009 04:46 AM
Re: using vi editor in hp-ux
A Google search for 'vi' will offer "cheat-sheets" like:
http://www.lagmonster.org/docs/vi.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2009 04:50 AM
тАО03-31-2009 04:50 AM
SolutionImportant cursor Movement keys
keys Effect
l Move one character right
h Move one character left
j Move one line down
k Move one line up
G Go to last line of the file
nG Go to line number n in the file
$ Go to end of current line
^ Go to start of line
w Go to beginning of next word
b Go to beginning of previous word
e Move to end of word
H Go to first line of screen
M Go to middle line of screen
L Go to last line of screen
( Go to beginning of sentence
) Go to end of sentence
{ Go to beginning of paragraph
} Go to end of paragraph
Text Deletion Commands
Command Effect
x Delete character at current cursor location.
nx Delete n characters starting at current cursor location.
X Delete previous character from the current cursor location.
nX Delete n previous characters from the current cursor location.
dd Delete current line.
db Delete previous word.
dw Delete from current cursor location to the end of word.
dG Delete to the end of file including current line.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2009 04:56 AM
тАО03-31-2009 04:56 AM
Re: using vi editor in hp-ux
to insert a letter .. press i and then insert the letter
to move cursor use arrow keys.
but there is no backsapce deletion in vi editor
Thanks,
JOhnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2009 05:27 AM
тАО03-31-2009 05:27 AM
Re: using vi editor in hp-ux
Open it with Wordpad and it will line up right.
Regards,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2009 05:33 AM
тАО03-31-2009 05:33 AM
Re: using vi editor in hp-ux
In hp you can't delete characters using "del" key. Use x to delete single char.
see vi man page for more details
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2009 05:43 AM
тАО03-31-2009 05:43 AM
Re: using vi editor in hp-ux
can you make an entry in the .vimrc at your $HOME dir for the user
set bs=2
Let me know.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2009 06:06 AM
тАО03-31-2009 06:06 AM
Re: using vi editor in hp-ux
>>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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2009 12:09 AM
тАО04-01-2009 12:09 AM
Re: using vi editor in hp-ux
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,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2009 01:18 AM
тАО04-01-2009 01:18 AM
Re: using vi editor in hp-ux
x is using for a single character
for more information please check the below link
http://thomer.com/vi/vi.html
suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2009 04:04 AM
тАО04-01-2009 04:04 AM
Re: using vi editor in hp-ux
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2009 07:06 AM
тАО04-01-2009 07:06 AM
Re: using vi editor in hp-ux
> 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.