Regarding this command:
f{char} To [count]'th occurrence of {char} to the right. The
cursor is placed on {char} |inclusive|.
{char} can be entered as a digraph |digraph-arg|.
When 'encoding' is set to Unicode, composing
characters may be used, see |utf-8-char-arg|.
|:lmap| mappings apply to {char}. The CTRL-^ command
in Insert mode can be used to switch this on/off
|i_CTRL-^|.
I would like to change its behaviour as such. Take this sample string, in which ^
indicates the cursor position:
foobar(); // boat programming SO meme
^
The keystroke: f;
would leave the cursor in place, because there is no ;
right of the cursor. I would rather have it function that it would search left instead:
foobar(); // boat programming SO meme
^
Make sense? The reverse should apply, as the t;
sequence.
F
andT
which are the opposite off
andt
(:h F
and:h T
)? They will not work automatically but that you didn't mentioned them in your question I thought they could be useful :)