Closed eligundry closed 12 years ago
Good point. I prefer your second approach. But what do you think about the existing convention of adding a new ftplugin/php.vim
into Unbundle itself?
That's certainly a fair point. I guess that's a way to skin this horse, but I'd just as soon define it in a single liner in my .vimrc
than create a new file. Also, since I use Git submodules, it would be tricky to sync across all my machines without making a fork.
I just noticed that the argument passed to Unftbundle() is inserted into a glob, so you can load multiple filetypes like this:
call Unftbundle('{html,css,javascript}')
Will that suffice?
@sunaku Oh my, yes, that will totally work. Thank you so much!
Good. Closing.
Hi there, I'm really loving the speed improvements Unbundle is doing for my Vim install. I have but one issue, and that's passing multiple filetypes to
Unftbundle
. For example, when I'm working with PHP files, I want to have my HTML, CSS, and Javascript bundles loaded. I do this with anaugroup
block, like so:I think we can all agree that this could be a much nicer process if
Unftbundle
accepted an array, which would make my example:Here are my suggestions:
Unftbundle
to accept an array of filetypesautocmd
's automatically (example below)