Questions tagged [selection]
36 questions
4
votes
0 answers
Select everything between quotes over multiple lines
Is there a way to select everything between quotes " ' and where the text contained between these quotes span multiple lines? vi
will select everything in between the quotes but it only works on a single line. Basically, I want…
Riptide
- 141
- 1
3
votes
1 answer
How to line-select a block within a back-ticked string
I've got the following code
1 const unrelated = 3;
2
3 const XYZ = styled.div`
4 display: inline-block;
5 position: absolute;
6
7 margin: auto;
8 `;
9
10 const unrelated2 = 6;
With my cursor in line 6, how can I line-select lines 3 to 8?…
kadrian
- 133
- 4
3
votes
2 answers
How to vertically-block-select words of different length?
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…
Patrick B.
- 559
- 1
- 6
- 16
2
votes
1 answer
Can you do a jagged visual selection or jagged yank?
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…
Keith Nicholas
- 121
- 3
0
votes
1 answer
How to multi select for the purpose of copy operation?
I can do a search to highlight multiple unrelated words that exist with:
/word1\|word2\|word3
But this is only search, it is not "select" (for copy and paste operation)
How to highlight multiple unrelated sentences ?
As in web browser, I can…
user15344508
- 13
- 5