Presenting.vim uses the command G$vggd to clear the content of the slide buffer. This clobbers the unnamed register (") with the content of the previous page. Here's the steps to show the effect:
Open a markdown file
Yank the first line (yy)
Open the slide buffer (:PresentingStart)
Switch to the next page (n)
Close the slide buffer (q)
Paste (p)
The pasted content is not the previously yanked line, but the entire content of the first slide page.
I first replaced the command with G$vgg"_d to discard the deleted content. Then, I realized that this command can be replaced with :%delete _, which is easier to read.
Presenting.vim uses the command
G$vggd
to clear the content of the slide buffer. This clobbers the unnamed register (") with the content of the previous page. Here's the steps to show the effect:yy
):PresentingStart
)n
)q
)p
)The pasted content is not the previously yanked line, but the entire content of the first slide page.
I first replaced the command with
G$vgg"_d
to discard the deleted content. Then, I realized that this command can be replaced with:%delete _
, which is easier to read.