Skip to content

Comment on Learn to speak vim - verbs, nouns, and modifiers

Comments

Is there any way to use a / search as the target object with these sorts of commands? I'd like for instance to be able to type ct/foo<cr> and have it delete to the next instance of foo and put me in insert mode. Or something along those lines.

/foo<cr>c`` may be what you're looking for (see :help ``)

Simply c/foo should work, if I understand you correctly.

Oh thanks, for some reason I thought I tried that before and it didn't work. Awesome.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.