Since the /
search is exclusive, it will select everything up to the match, but not including the match. (check :help exclusive
)
A more convenient way might be to use the inclusive f
and t
motion commands.
With the following line:
cat Oliver Louis
typing yfs
in normal mode will yank everything up to the letter "s", or in this case, cat Oliver Louis
Obviously, this isn't as convenient if the line is something like
cat Assassins Scissors
There are too many s's. In this case you might want to go into visual mode and either repeat the inclusive f
search motion by tapping ;
until you reach the last s. Or, as you suggested above, simply use w
preceded by the number of words you'd like to copy. In this case y3w
will work.