Re:Amp – A complete text editor for the terminal
by yakshaving_jgt on Thursday November 22, 2018 @09:24AM
(#18510125)
It's definitely exactly right, but I tried to word it in a way which didn't make me look like a know-it-all.
> 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.
Re:Amp – A complete text editor for the terminal
by jolmg on Thursday November 22, 2018 @02:01PM
(#18511814)
> "change forward" [...] 'cf'
"change find", you mean.
Re:Amp – A complete text editor for the terminal
by edanm on Thursday November 22, 2018 @02:20PM
(#18511927)
Interesting! I'd always thought of it as "f"orward.
Is there any official reference to it standing for find? Googling has found a few unofficial references, but help doesn't appear to say either way.
Re:Amp – A complete text editor for the terminal
by jolmg on Thursday November 22, 2018 @03:44PM
(#18512432)
In vim's usr_03.txt manual file, it says:
> One of the most useful movement commands is the single-character search command. The command "fx" searches forward in the line for the single character x. Hint: "f" stands for "Find".
That seems official.
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.