3 ms·
You can also use yi" to yank it immediately without selecting it first (replace y with c or d to change or delete, respectively). Replace i with a to include th
by School-Cotton 3y ago
You can also use yi" to yank it immediately without selecting it first (replace y with c or d to change or delete, respectively). Replace i with a to include the quotes ("around" rather than "inside"). Replace " with ( [ or { to match other kinds of bracketing characters. And include a number to go more than one set out.
E.g.
y2a(
means yank everything inside (and including) the second nested pair of parentheses out from the current point.
- williamdclt 3y agoTbh I hate that vim keeps wanting to make me count. I don’t know if it is the first, second or third nested pair of parentheses, and the time for me to count is probably similar than the time to just select with the mouse. I struggle to believe anybody actually counts when using vim , whether it’s levels of nesting or number of lines. I wish vim was better at showing what you’re going to operate on, and edit it before the operation. Eg a( could select out of the first parentheses then n to extend until everything I want selected is, then y
- School-Cotton 3y agoYou might like Kakoune, which basically works how you describe.