vim Vim Registers Delete a range of lines into a named register


Example

In Normal, type the following to delete a range of lines into a named register

:10,20d a

This will delete lines 10,20 in register "a. We can verify this by typing

:reg

This will show the text that was delete in register "a.

To paste the contents in "a, just type

"ap