Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mo_42
on June 15, 2023
|
parent
|
context
|
favorite
| on:
Moving fast with the core Vim motions
In These cases I'd recommend text objects. For example,
ci)
Will delete everything inside parentheses and put you in insert mode.
Even works for HTML tags with t I think.
Edit: should be ci) to preserve the parentheses.
ackyshake
on June 15, 2023
[–]
Text objects are cool, but `ca)` would remove the parenthesis too. There's no shorter way to get to `my_func(foo);` when your cursor is at the comma, than using the motion OP indicated.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Even works for HTML tags with t I think.
Edit: should be ci) to preserve the parentheses.