Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
wahnfrieden
· 14y ago · 0 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.
Comments
[–]
noste
14y ago
/foo<cr>c`` may be what you're looking for (see :help ``)
[–]
burgerbrain
14y ago
Simply c/foo should work, if I understand you correctly.
[–]
wahnfrieden
OP
14y ago
Oh thanks, for some reason I thought I tried that before and it didn't work. Awesome.