What is the difference between lettered buffer and temporary
buffer?
Answer Posted / ali ahsan
Temporary Buffers
dd( or followed by a number ndd) will cut the lines specified by n starting from current line and these lines will be stored into the temporary buffer until new lines are being cut
yy( or followed by a number nyy) will copy the lines specified by n starting from current line and these lines will be stored into the temporary buffer until new lines are being copied
p or P is used to use lines being stored in buffer
Lettered Buffers
There are 26 lettered buffers (a-z). Contents of a lettered buffer are saved until you copy or delete more characters into the same lettered buffer, or until you quit your current vi session.
eg.
From Command Mode
"anyy Copy (yank) n lines into buffer letter "a"
"ap Put contents of lettered buffer a below the
current line
and following command will not overridde a lettered buffer
bnyy Copy (yank) n lines into buffer letter "b"
"bp Put contents of lettered buffer a below the
current line
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers