* Suresh Govindachar wrote, On 27.12.2006 14:42 Uhr: > Simon Pamies Sent: Wednesday, December 27, 2006 3:49 AM > >* Suresh Govindachar wrote, On 27.12.2006 12:35 Uhr: > >> Simon Pamies Sent: Wednesday, December 27, 2006 3:19 AM > >>>* Simon Pamies wrote, On 27.12.2006 11:50 Uhr: > >>>> > [...] > >>> > > try the following: > > :b bach <TAB> > > /home/spamies/work/bachl/bsc.cls /home/spamies/work/bachl/bach.tex > > > > It tries to complete the work/bachl directory but I want it to > > complete directly to bach.tex [...] > See > > help :command-completion > > It is not that complicated. Essentially, when user types > :B bach <tab> > your custom completion function will be called with argument bach; > your custom completion function will need to look at the list of > buffers and select those which have bach in their file-name and > return the selected sub-list of buffers.
That's great - I should have asked this list before! Thanks for the hint! If I find time I'll rewrite my stuff as plugin. Until then I'll use my patched vim. Simon