Comment on Learn to speak vim - verbs, nouns, and modifiersComments−wahnfrieden14yIs 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.−noste14y/foo<cr>c`` may be what you're looking for (see :help ``)−burgerbrain14ySimply c/foo should work, if I understand you correctly.−wahnfrieden14yOh thanks, for some reason I thought I tried that before and it didn't work. Awesome.
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.