With other editors we can select vertical-blocks where each line has the same start column but not the same end-column.
For example:
print("", s.field1);
print("", s.field_long);
print("", s.f);
Is there a way in Vim (with a plugin or not) to select the block from the snippet above:
field1
field_long
f
Can we tell vim to select everything up to a certain character?
A more powerful variant could be to tell Vim select everything between two characters going left and right from the currently selected column.
EDIT:
Doing tricks with CTRL-v does not work as it always selected a rectangle. Here I vertically selected the fs and then did w for word-skip.

<C-v>$ythat you could use to yank the text you want to use followed bys:/);//to remove the unwanted characters. – statox Jun 03 '19 at 15:20ctrl+shift+downctrl+right arrowto do this. – Jeroen Vermunt Mar 20 '24 at 17:31