vim-visual-multi icon indicating copy to clipboard operation
vim-visual-multi copied to clipboard

How to access region-specific registers?

Open cander111 opened this issue 3 years ago • 1 comments

I often need to evaluate small selections of text with python, which can be accomplished with a selection in visual mode with the following command:

c<C-R>=py3eval(@")<CR><ESC>

This command works by first deleting the text into the " register, and then retrieving the contents of " as the input for the py3eval() command.

If I have some selections in visual-multi mode that I want to evaluate, typing c behaves as expected, but then is there a way to get the value of each region's register?

cander111 avatar May 06 '22 17:05 cander111

Try :help vm-transform, but it works from normal mode.

mg979 avatar May 06 '22 18:05 mg979