Hi all, I believe vim carries out greedy pattern matching, i.e. the longest pattern found will be used. Is there a way of performing shortest matching ?
As an example, I have the following text: fe fi fo united kingdom fe fi fo 0911 209 30 30 and I want to delete everything up to the word united so I used :%s/.*fo // but this deleted everything up to 0911. Thanks in advance, Bob