- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: What is vi command to place contents of marker...
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
тАО05-24-2002 06:11 AM
тАО05-24-2002 06:11 AM
I'm trying to figure out how to place the contents of two markers in a named buffer. I can get the unnamed buffer to be used. I want to use a named buffer.
The following yanks the contents of two buffers into the unnamed buffer.
'ay'b
I tried 'ayay'b and it doesn't work.
Is it possible to copy the contents of the unnamed buffer to a named buffer.
Thanks... jack..
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2002 06:30 AM
тАО05-24-2002 06:30 AM
Re: What is vi command to place contents of markers in a named buffer?
"ayy
would copy the current line to buffer a.
To move from the unnamed to a named buffer a you would do:
"ap
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2002 06:37 AM
тАО05-24-2002 06:37 AM
Solution'a"ay'b
will put the content of everything between mark a ('a) and mark b ('b) into buffer a ("a)
> Is it possible to copy the contents of the unnamed buffer to a named buffer.
no, not without putting the unnamed buffer in the file first. But you can do
Gp"adG
Go to end of file, put the contents of the unnamed buffer there, and delete what you've just put there into buffer a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2002 06:38 AM
тАО05-24-2002 06:38 AM
Re: What is vi command to place contents of markers in a named buffer?
Move to the last +1 line then do "ay'a to yank the lines into the buffer a
Edit a new file and use "ap to put the yanked lines into the new file.
Hilary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2002 06:39 AM
тАО05-24-2002 06:39 AM
Re: What is vi command to place contents of markers in a named buffer?
Ex:
Position cursor on start line
ma
Position cursor on last line
mb
Now place the contents of marker a and marker b into buffer c
'ay'b works for the default buffer
I would like to be able to then paste the contents of buffer c later in the file,
ex: "cp
jack...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2002 06:42 AM
тАО05-24-2002 06:42 AM
Re: What is vi command to place contents of markers in a named buffer?
'a"ay'b
is exactly what I'm looking for. I was missing the double quotes.
Thanks to all... jack...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2002 07:17 AM
тАО05-24-2002 07:17 AM
Re: What is vi command to place contents of markers in a named buffer?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2002 07:35 AM
тАО05-24-2002 07:35 AM
Re: What is vi command to place contents of markers in a named buffer?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2002 09:36 AM
тАО05-24-2002 09:36 AM