What is the difference between lettered buffer and temporary
buffer?

Answers were Sorted based on User's Feedback



What is the difference between lettered buffer and temporary buffer?..

Answer / jitendra babar

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

Is This Answer Correct ?    3 Yes 0 No

What is the difference between lettered buffer and temporary buffer?..

Answer / 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

More Vi Editor Interview Questions

what is the command used to append to buffer?

0 Answers   IBM,


What is the command used to replace many characters?

2 Answers  


How to append a file to current file?

3 Answers  


what does the c$ command do from command mode?

5 Answers  


What is the difference between ZZ and :wq commands?

4 Answers  






Which command is used to replace many characters?

4 Answers  


How to return to shell without leaving vi editor?

2 Answers  


How to create a .exrc file in vi editor?

1 Answers  


what are the two different modes in vi editor?

7 Answers  


what are the different delete commands used in vi editor?

2 Answers  


What is the difference between lettered buffer and temporary buffer?

2 Answers  


HOW WE CAN MAKE THE DLIEVERY WHICH IS BLOCKED DUE TO CREDIT LIMIT.

0 Answers   Seamless,


Categories
  • Vi Editor Interview Questions Vi Editor (21)
  • Visual Studio IDE Interview Questions Visual Studio IDE (207)
  • Editors AllOther Interview Questions Editors AllOther (1)