1.

What Is The Difference Between Lettered Buffer And Temporary Buffer In Vi Editor?

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

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



Discussion

No Comment Found