Let's say I have
Foo BAR Baz Quxxx Foo
Baar Asd Duxxxxx Bar Foo
Baazzz Kuxx Baz
I would ideally like to be to highlight the first, second, or third column. Then I would like to able to quote them such that they're like this,
'Foo BAR Baz' 'Quxxx' 'Foo'
'Baar Asd' 'Duxxxxx' 'Bar Foo'
'Baazzz' 'Kuxx' 'Baz'
What is the easiest way to do that. I've asked this question before but none of those solutions covered these kinds of use cases,
- You can't skip over by using
W
, because the first column may have more than oneWORD
. - I would like the
WORD
to be delimited by the last non-whitespace character highlighted on the line in block mode.
Ideally this would work in visual mode.