by throwrhebrick · 8y ago · 0 comments
…Isn't the answer "neither"?
If the cursor is somewhere before that `h`, then doing `fh` will put the cursor on that `h`. If you want to enter insert mode before that `h`, you would press `i`, or `a` to enter insert mode after the `h`.
In the case of 'ct', you're going to delete up until the letter, whereas in 'cf', it will include the letter you're targetting.
> The question is, when using a command like "change until" or "change forward", i.e. 'ct' or 'cf', what will the effect be?
Is this a question? You answered it accurately. The behaviour is consistent here too, though the mnemonics people often use don't always make total sense.
"change find", you mean.
What I do like about the vim keys though is the ability to delete or copy/paste with precision by chaining hotkeys together.
Regarding your searching for a word example, unsurprisingly you can do the same in vi (let alone vim) too:
/ - search forwards
? - search backwards
edit: It wasn't me who voted you down by the way. I know you've not complained about it but I wanted to express that I don't agree with you getting downvoted even though I don't agree with the content of your post.