On Wed, 12 Jul 2006 at 11:48am, Max Dyckhoff wrote: > Has anyone written some useful script which will allow me to press some > key combination and get vim to insert the common root of all matching > tags. I don't think that's a very good explanation, so here's an > example: > > For this example, imagine the tags are "wibble, foobar, food, > foonicular, foot". I type "f" and then press <C-P>. Normally the first > matching tag would be inserted, for example "food". Instead I would like > it to enter the common root of all found tags, namely "foo". The popup > menu would still be visible so I could select from it, or type more and > then press <C-P> again for more refined matches. > > Ideas? > > Cheers! > > Max > -- > Max Dyckhoff > AI Engineer > Bungie Studios >
Looks like you are looking for the "longest" option in 'completeopt'. -- HTH, Hari __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
