- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vi editor
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
тАО01-04-2007 12:03 AM
тАО01-04-2007 12:03 AM
vi editor
I need to copy the contents of vi and paste in word. Want to know the command to copy the whole contents in vi editor.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2007 12:07 AM
тАО01-04-2007 12:07 AM
Re: vi editor
You have to use your terminal emulator's built-in copy, rather than vi's "yank". If you're using PuTTY, simply highlight the desired text, and paste (ctrl+V) into Word. Other emulators may require a copy (ctrl+C) step after highlighting the text.
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2007 12:08 AM
тАО01-04-2007 12:08 AM
Re: vi editor
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2007 12:08 AM
тАО01-04-2007 12:08 AM
Re: vi editor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2007 12:16 AM
тАО01-05-2007 12:16 AM
Re: vi editor
If you are on windows, you can probably just use cut and paste with the MOUSE.
If X is some amber terminal sitting in a computer room? I don't care how long your mouse can reach. It can't walk to other rooms.
So what do you do? You need to grab copy the file to your pc via ftp.
But first you might want to run the ux2dos command to make it more readable.
1. cat myunixfile | un2dos > myunixfile.txt
(Note I added .txt to the end).
2. ftp file myunixfile.txt to your pc
c:\myunixfile.txt
3. open msword
4. open c:\myunixfile.txt
steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2007 12:31 AM
тАО01-05-2007 12:31 AM
Re: vi editor
if you mean to import the text into a microsoft word document then it is preferable that you ftp the file to the windows environment first.
you can then open the file using either notepad and use copy+paste commands to put it in a word document.
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2007 01:49 AM
тАО01-05-2007 01:49 AM
Re: vi editor
If you want to copy the entire content of the file , its very simple:
"Want to know the command to copy the whole contents in vi editor."
Suppose you have a big file , then vi will not show the entire file , it will show only 40 lines in the screen , so even if you select all the line from your mouse you cannot paste it in the word file.
Here is some senario to get the file:
1. ftp the file with ascii format to local pc:
2. From you putty session you can get the entire file:
- In Puty --> right click --> Change Settings --> Logging --> choose "Log all Session output" --> provide a filename .
- do a $ cat file_name_to_paste
- close the session.
- Check the file. All the entire content will be there in that file.
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-07-2007 06:46 PM
тАО01-07-2007 06:46 PM
Re: vi editor
Regards
Ramnath S