given some text like
sadf_blahbalh_sdf
sadf_abc_zzz
asdf_yx_sdf
and I want to block select from the 'b' of blah down to the 'y' of yx and then, for every line extend the select to the _ using something like t_
. But that will select till the _ on the line with yx. What I'd like is a jagged block select that will t_ per visual block line, so blahbalh, abc, and yx are all selected... is this possible? or a different approach?
so that if I then yank it and then do visual block select spaces between [ ] in the below example and paste...
[ ]
[ ]
[ ]
I'd end up with
[blahbalh]
[abc]
[yx]
$
end-of-line. You might be able to automate this with a macro, though. Something like0fbmaqq
ayt_ajmaq
(excuse the formatting, there are backticks between q/a and _/a)—this would let you run@q
to yank a particular block. You could add commands to move somewhere else and paste if you wanted too.