From the following text:
variable1 = 'example'
foo = 'foo'
barett = 'ver'
I would like to yank (or visually select, if possible) the content of each line until the =
sign:
variable1
foo
barett
That is: "yank/visually select the contents of the following lines, stopping the yanking/selection in each line as soon as an =
character is found"
If I were dealing with a single line it would be simple> from the beginning of the line: yt=
But I have no clue how to do this with multiple lines (and visual block won't help since I don't want the same number of characters from each line).