Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
1
vote
How to grow/shrink a selection per tab?
If it’s always a whole line, just replace gv with V
We tried
xnoremap <expr> <Tab> line("'<") isnot# line("'>") ? '>gvVgv' : '>V'
to handle multi-line selections and single-line selections, but there …
0
votes
Copy text extracted from multiple lines
An alternate approach, though Vivian’s is great:
Clear a register: qaq
Yank all the emails to that register: :global/email/normal! 0f:l"Ayt)
This won’t put newlines between the emails. A cleverer co …
2
votes
Accepted
Select text in block-wise visual mode on each line asynchronously
In general, visual block selections must be blocks (rectangles). The only "jagged" selections are when you hit <C-v>$ to select to the end of multiple lines.
However, depending on what you want to do …
2
votes
Accepted
Select entire function call or extend selection
For
func(gunk(a, b))
with the cursor on the f of func, I would press y% or d%. The % command jumps between matching pairs (roughly; depending on configuration, optional plugins that ship with Vim, et …
0
votes
When text is selected in Neovim on macOS, that selection isn't added to the primary clipboar...
I don't think macOS exposes "PRIMARY" (as distinct from "CLIPBOARD") in the way that other that, say, X does. See :help quoteplus and :help quotestar. In practice I find both registers are the clipboa …
24
votes
Accepted
Select multiple words, one at a time, then replace them all
substitute in a narrower region, than the whole file (%), use ranges (and remember that in visual mode, : automatically populates the range '<,'>, which is also the range *, which is all the lines in the selection …
2
votes
Accepted
Selector for line of text?
The fastest I can come up with is really ^vg_ to be precise about start and end of line.
But, by way of challenge, perhaps you really need dd, yy, cc, or similar? Even guu and g~~ work.
If you can …
3
votes
Accepted
Put cursor at arbitrary line and column
You need to set virtualedit=all. The virtualedit option controls where you can edit outside of the actual text (there are other options). Read :help 'virtualedit' for more.
0
votes
Select current Line from normal mode without changing cursor position AND without selecting ...
In visual and visual block mode, your cursor is always at one corner of the selection; in visual line mode, the end of line is always included. So what you want is not supported. …