vim-visual-multi
vim-visual-multi copied to clipboard
How to access region-specific registers?
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?
Try :help vm-transform, but it works from normal mode.