Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improved compatibility: vundle should now support vim >= 7.0 (#2) #355

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

ezequielv
Copy link

I've seen that vundle seemed to only run on vim >= 7.2 (mainly due to the reliance on fnameescape()), so I've decided to create the 'autoload/vundle/compat.vim' file to provide implementations for both "new" (and "supporting") vim versions, and also for those vim versions that didn't provide those functions.

I've tested using BundleList, BundleInstall, BundleSearch, manually getting the list of packages ('R' on the BundleList). It all seems to work fine (some of the plugins that you can load through 'Bundle' aren't really that good at detecting whether vim supports them or not).

These changes don't seem to have "worsened" vundle in any perceivable way (not at least in the way I've been using it), so I reckon you should be happy to pull :-)


This includes changes triggered by jdevera's review comments.

 * added new functions to detach caller from having to call
    fnameescape() (which isn't available until vim-7.2):
  * s:compat_rtp_rm_entry(dirs): abstracts 'set rtp-=LIST';
  * s:compat_rtp_addset_entry(dirs, addset_operator):
     abstracts 'set rtp+=LIST', 'set rtp^=LIST',
     'set rtp=LIST';
 * created autoload/vundle/compat.vim: "compatibility" module
    (implements functions not available in previous vim versions);
    (code taken from my previous commit in 'autoload/vundle/config.vim',
    then modified and extended);
  * added compatibility function for shellescape();
 * autoload/vundle/config.vim: tidied up so that it's a bit closer to
    the file upstream;
  * (previous commit) but added a few performance improvements (avoid
     unnecessary calls and/or operations);
 * altered other scripts to use 'vundle#compat#*()' functions instead of
    those not necessarily available in previous vim versions;
 * use local variable in filter expression (filter());
 * moved comments regarding future changes to the bottom of the file;
@ezequielv
Copy link
Author

Original pull request: #354

@ezequielv
Copy link
Author

I'm sorry I've created another pull request. I hadn't noticed that github would automatically include "pushed" commits in my development branch (although it actually didn't do that (for quite a few minutes/seconds), AFAICT). Live and learn.

@ezequielv ezequielv mentioned this pull request Nov 13, 2013
@wangbus
Copy link

wangbus commented Jan 21, 2014

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants