Shortest Pattern Match

2006-07-12 Thread Bob Fleming
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

Re: Shortest Pattern Match

2006-07-12 Thread Jürgen Krämer
Hi, Bob Fleming wrote: 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

RE: [Bulk] Re: Shortest Pattern Match

2006-07-12 Thread Bob Fleming
Perfect, thanks very much. -Original Message- From: Jürgen Krämer [mailto:[EMAIL PROTECTED] Sent: Wed 12 July 2006 09:14 To: vim mailing list Subject: [Bulk] Re: Shortest Pattern Match Hi, Bob Fleming wrote: Hi all, I believe vim carries out greedy pattern matching, i.e