Commit Graph

579 Commits

Author SHA1 Message Date
Shahaf Arad
2506347586 Prevent insecure plugin names.
Plugins' names which contain '../', '$HOME', '%:h:h', '..\', etc.
can be dangerous.
Use a sensible whitelist for plugin names and prevent its expansion.
2015-03-22 00:38:52 +02:00
Jacobo de Vera
34a307786b Merge pull request #450 from lucc/autoload-vars
Refactor global variables to autoload variables
2015-03-21 23:17:37 +01:00
Lucas Hoffmann
16237bbb73 Set default values for autoload variables.
The setting of the default values for the autoload variables is moved out of
any function.  One reason being that these settings do not depend on the
argument of the function.  The second being that Vim will source the autoload
script if an undefined autoload variable is referenced and the file is
expected to define the variable (see :help autoload).
2015-03-04 13:12:20 +01:00
Lucas Hoffmann
356f245fbe Refactor global variables into autoload variables.
All global variables that are not part of the public API (mentioned in the
documentation) are turned into autoload variables.  This is intended to give
all global variables defined by Vundle.vim a common prefix.  The variable
g:default_git_proto is part of the public API and is therefor not changed.
This is the only exception.

Changed:
   g:bundle_dir            -> vundle#bundle_dir
   g:bundles               -> vundle#bundles
   g:updated_bundles       -> vundle#updated_bundles
   g:vundle_lazy_load      -> vundle#lazy_load
   g:vundle_log            -> vundle#log
Unchanged:
   g:default_git_proto
2015-03-04 13:12:20 +01:00
Lucas Hoffmann
5f27abb958 Allow multiple calls to VundleLog.
If it was loaded, unload the log buffer before editing it.  Otherwise the
editing command can "hang" if the user has `set hidden`.

This problem was originally discovered with the VundleChangelog command and
the analogous fix was applied in 7d9b10.  See github issue #468 for more.
2015-03-04 13:05:14 +01:00
Lucas Hoffmann
088295df77 Refactor global variables into script local variables.
These variables only occur in one file each.  By making them script local
variables this is "documented" in the code.  At the same time the global
namespace is polluted less.

Changed:
    g:bundle_names          -> s:bundle_names
    g:vundle_last_status    -> s:last_status
    g:vundle_log_file       -> s:log_file
    g:vundle_view           -> s:view
2015-03-03 10:50:28 +01:00
Lucas Hoffmann
cad5f50a64 Remove unneeded variable setting.
The variable is script local to autoload/vundle/scripts.vim since #468.
2015-03-03 10:40:30 +01:00
Lucas Hoffmann
7d9b10874e Allow multiple calls to VundleChangelog.
The command `silent pedit ...` was causing trouble if the user had `set
hidden`.  Now we `bdelete` the changelog buffer before editing it anew.
2015-03-03 02:06:24 +01:00
Jacobo de Vera
c4d68bcf7c Merge pull request #514 from PeterDaveHello/patch-1
Use svg instead of png to get better image quality
2015-03-02 22:26:46 +01:00
Jacobo de Vera
a39790b5e7 Merge pull request #508 from sukima/patch-1
Update minirc to Plugin* commands with #begin and #end
2015-03-02 22:23:05 +01:00
Jacobo de Vera
92a66df592 Complete installed plugins also for VundleUpdate 2015-03-02 22:04:02 +01:00
Shahaf Arad
1df432aecf Allow updating specific plugins. 2015-03-02 22:04:02 +01:00
Jacobo de Vera
a864467285 Add explicit note for Fish users to check the FAQ 2015-02-20 07:01:53 +01:00
Peter Dave Hello
55db8cc492 Use svg instead of png to get better image quality 2014-09-08 15:45:39 +08:00
Devin Weaver
dbc36fcaae Update minirc to Plugin namespace 2014-08-26 11:00:55 -04:00
gmarik
0b28e334e6 Merge pull request #496 from gmarik/clarify-readme
Clarify Readme.
2014-07-18 18:35:02 -04:00
gmarik
1953dcd2ee Clarify Readme.
- closes #281
2014-07-18 18:33:37 -04:00
Andrea Cedraro
8db3bcb592 Change reference of Bundle to Plugin in the docs 2014-04-28 17:52:55 +02:00
Jacobo de Vera
c46dc75e3c Correct new version in changelog.md 2014-04-28 17:49:47 +02:00
Jacobo de Vera
40e23f79f1 Bump version to 0.10.2 2014-04-28 15:59:15 +02:00
Jacobo de Vera
a917677879 Limit default rtp rearrangement
Rearranging rtp so that **all** default directories appear first has the
undesired side effect of not allowing plugins to override default syntax
files.

This changeset limits the rearrangement of the rtp to simply making sure
the first directory in the default runtimepath appears first in also in
the runtimepath after Vundle has finished manipulating it.

This should keep the original bugs fixed and should eliminate the
aforementioned undesired side effect.

Fixes #430
Fixes #456
2014-04-28 15:43:40 +02:00
Lucas Hoffmann
0afe058353 change function g:shellesc_cd into vundle#installer#shellesc_cd 2014-04-28 15:26:04 +02:00
Jacobo de Vera
ad3f20fa6f Merge branch 'master' into next 2014-04-28 15:10:22 +02:00
Jacobo de Vera
a97e88917c Bump version to 0.10.1 2014-04-28 15:07:17 +02:00
Matthew Vance
286abd12f2 Clarified comment for non GitHub example in Configure bundles 2014-04-27 19:41:19 +02:00
Jacobo de Vera
879529ce39 Merge pull request #454 from vaibhavsagar/patch-1
Allow rtp paths with spaces on Windows

Fixes #451
Fixes #453
2014-04-25 10:13:54 +02:00
Vaibhav Sagar
4b751224d3 Allow rtp paths with spaces on Windows
Suggested by @ikurcubic
2014-04-25 18:08:44 +10:00
Jeremy Pallats/starcraft.man
526d390854 Changelog link fix. 2014-04-17 12:10:42 -04:00
Jeremy Pallats/starcraft.man
5030bd5228 Don't use > in log, highlights. 2014-04-17 12:02:10 -04:00
Jeremy Pallats/starcraft.man
5b38044baf Adding changelog. 2014-04-17 11:57:51 -04:00
Jeremy Pallats/starcraft.man
16a8aedc03 Adding Gitter Badge.
Fixes #443
2014-04-17 11:47:14 -04:00
Jeremy Pallats/starcraft.man
ba682521b0 Link line numbers updated. 2014-04-16 19:28:08 -04:00
Jeremy Pallats/starcraft.man
5fb14f7eec Image Update In Readme
* Fixes 435
2014-04-15 14:14:19 -04:00
Jacobo de Vera
f1433663ee Turn get_current_sha into a function
So it can be reused.

Fixes #441
2014-04-15 18:04:39 +02:00
Jacobo de Vera
3c6dd6d16b Check name collissions 2014-04-15 17:08:49 +02:00
Jacobo de Vera
53cb1215f6 Treat changed remotes as new plugins
If one had this plugin:

Plugin 'foo/bar'

And now switches to another one with the same name:

Plugin 'baz/bar'

Recognise this scenario and replace the old plugin with the new one,
rather than silently assuming they are the same.

Fixes #367 #48 #183 #400
2014-04-15 17:08:49 +02:00
Jeremy Pallats/starcraft.man
e7660d50f3 Documentation Update.
* Add modelines to all code/doc files excluding README.md.  The modeline used is: `" vim: set expandtab sts=2 ts=2 sw=2 tw=78 norl:`
* Rename links with /vundle to /Vundle.vim, seems to confuse some people with redirect.
* Remove duplicates from Quickstart, add example of `name` flag.
* Add link to Tips page by @Lucc .
* Change help maintain vundle link directly to the new one.
* README.md line number links updated.

Note: Users with bundle/vundle need to rename vundle to Vundle.vim to use test files. Vundle will continue to function otherwise.

Fixes #413.
Fixes #438.
2014-04-15 10:47:08 -04:00
Jacobo de Vera
50fe09cbd2 Remove Plugins command
It's a duplicate of the PluginSearch command.

Fixes #428
2014-04-11 00:14:09 +02:00
Jacobo de Vera
87e5a19520 Complete function documentation
- Complete the code documentation effort started by @lucc
- Remove some judgemental comments 
- Remove comments pertaining to things that should be opened as issues
- Boxed 
2014-04-10 23:50:05 +02:00
Lucas Hoffmann
b3b5f529b3 Add comments to document the code
Also add some FIXME markers in places where the code needs more
explanation.
2014-04-10 23:22:50 +02:00
Jacobo de Vera
f3da68779a Support plugin pinning
New supported option called 'pinned' for the Plugin command. When set to
1, the plugin is added to rtp but no install/upgrade operation is
performed.

It not only allows vundle to do rtp management of plugins on VCS other
than git, it also allows leaving plugins that had previously been
managed by vundle in the current state, with no further updates.

Fixes #24, #397
2014-04-09 09:57:50 +02:00
Jacobo de Vera
0152571eb5 Add multiple lines separately to the log 2014-04-09 09:07:02 +02:00
Jacobo de Vera
1736243c0e Handle default rtp values 2014-04-07 13:31:02 -04:00
Jacobo de Vera
c20c90d867 Lazy loading plugins with begin/end block 2014-04-07 01:12:14 +02:00
Jacobo de Vera
6545681f56 Resolve full doc dir path when running helptags
Prevents error 150 when user has doc/* in wildignore

Fixes #112
2014-04-06 00:08:03 +02:00
Jacobo de Vera
8dc18e4a42 Merge pull request #427 from mb1986/patch-1
Use correct filesystem url in README
2014-04-05 02:43:02 +02:00
Michał Blinkiewicz
ec16b7b797 fix typo in line no. 205 of README.md
change from `Plugin 'file///path/from/root/to/plugin'` to `Plugin 'file:///path/from/root/to/plugin'`
2014-04-04 18:17:14 +02:00
Jacobo de Vera
d690c777f1 Merge pull request #421 from Keithbsmiley/master
Fix incorrectly aliased VundleInstall command
2014-04-01 05:39:38 +02:00
Keith Smiley
e2bf911895 Fix incorrectly aliased VundleInstall command 2014-03-31 18:09:00 -04:00
Jeremy Pallats/starcraft.man
90dd826199 Merge pull request #416 from lucc/api
Readability improvement for the vim commands.
2014-03-28 16:27:24 -04:00