Skip to main content
edited title
Link

Can you do a jagged visual selection or jagged yank?

added 33 characters in body
Source Link

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]

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 visual block select spaces between [ ] in the below example

[ ]
[ ]
[ ]

I'd end up with

[blahbalh]
[abc]
[yx]

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]
Source Link

Can you do a jagged visual selection?

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 visual block select spaces between [ ] in the below example

[ ]
[ ]
[ ]

I'd end up with

[blahbalh]
[abc]
[yx]