On Mon, Sep 14, 2009 at 4:45 PM, Daniel Fetchinson <[email protected]> wrote: >> >> Try this (untested): >> >> function! Msplit(...) >> if a:0 > 0 >> exec args join(a:000, ' ') >> endif >> all >> endfunction >> >> command! -args=* -complete=file Msplit :call Msplit(<f-args>) > > This, in its current form, gives an error, > > E181: Invalid attribute: args=* > > But since you have the magical -complete=file expression in your > command, it made me think maybe this has something to do with > Tab-completion?
Sorry, it should be -nargs, not -args. The completion allows you to complete filenames, by pressing <Tab>, though won't help much with the wildcards. BTW, I don't actually know if wildcards can be used in :args. -- HTH, Hari > > Cheers, > Daniel > > -- > Psss, psss, put it down! - http://www.cafepress.com/putitdown > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
