Editors Question:
What is the difference between lettered buffer and temporary buffer?
Answer:
Temporary Buffer
Deleted or copied text goes into a temporary unnamed
buffer. The contents of the temporary buffer may be
retrieved by using the p or P commands.
Lettered Buffers
There are 26 lettered buffers (a-z). Contents of a lettered
buffer are saved until you copy or delete more characters
into it, or until you quit your current vi session.
eg.
From Command Mode
"ayy Copy (yank) a line into buffer letter "a"
"ap Put contents of lettered buffer a below the
current line
Deleted or copied text goes into a temporary unnamed
buffer. The contents of the temporary buffer may be
retrieved by using the p or P commands.
Lettered Buffers
There are 26 lettered buffers (a-z). Contents of a lettered
buffer are saved until you copy or delete more characters
into it, or until you quit your current vi session.
eg.
From Command Mode
"ayy Copy (yank) a line into buffer letter "a"
"ap Put contents of lettered buffer a below the
current line
Previous Question | Next Question |
What are the two different modes in vi editor? | What is the command used to append text after current line? |