Using Multiple Buffers
Be aware that any use of the GPB replaces the previous contents. So if you perform a 100dd command to delete 100 lines (and place them in the GPB), and then delete another character by using the x command, the single character removed by the x command replaces the 100 lines of data in the GPB.
Your goal might have been to append some extra bytes or lines onto the current contents of the GPB. However, the result would be that you end up with the last deleted (or yanked) command in the GPB. It does not perform the append operation by default.
The vi editor provides buffers other than the GPB. Some of these other buffers have the append characteristic discussed in the previous paragraph. These buffers are referred to as
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access