Say i have line stored in buffer k. how do I replace some line with the content of the buffer?
Whenever you delete something from a file, vi keeps a copy in a temporary file called the general buffer. You can also delete or copy lines into temporary files called named buffers that will let you reuse those lines during your current vi work session.
go anywhere on the line to be replaced. Execute a buffer P (Put above). Use dd to delete the current line.
so "xPdd
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With