- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- 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
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.