Re:Moving Fast with the Core Vim Motions
by lkbm on Wednesday June 14, 2023 @07:19PM
(#36334241)
In most cases `di)` is what I want, deleting everything inside the current parens, forward and back. I can see use-cases for "forward only", though.
[ Parent
| on HN ]
Re:Moving Fast with the Core Vim Motions
by ninkendo on Wednesday June 14, 2023 @08:16PM
(#36334751)
I’ve learned to favor using c instead of d if I want to edit after deleting… it keeps things in one logical command from vim’s perspective, so that I can repeat it a second time on another line by just using `.`. Using d and then i, vim treats as two commands and thus `.` only repeats the insertion.