Commit Graph

50 Commits

Author SHA1 Message Date
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
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
Vaibhav Sagar
4b751224d3 Allow rtp paths with spaces on Windows
Suggested by @ikurcubic
2014-04-25 18:08:44 +10:00
Jacobo de Vera
3c6dd6d16b Check name collissions 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
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
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
gmarik
0521de95ea use Plugin instead Bundle
- closes many issues )
2014-03-23 11:27:06 -04:00
Jacobo de Vera
14891dbae2 Check for leading/trailing spaces in bundle specs
Warn the user when a leading or trailing space is found in one the
bundle specs they have configured using the Bundle command.
2013-03-16 00:09:07 +00:00
gmarik
3ad4b0334c Revert "change &rtp manipulation"
- causes #203

This reverts commit 1e140c9f6b.
2012-08-15 02:06:13 -05:00
gmarik
1e140c9f6b change &rtp manipulation
- make it append only (instead both append + prepend)
- which draws *_rm_a and *_add_a useless as &rtp order gets preserved
- benefits: simpler, faster, less code
2012-07-16 20:22:34 -05:00
gmarik
5b0bb1375d inline loop
- also work in batches
2012-02-15 23:05:38 -06:00
gmarik
1fce719532 make rtpath an attribute
- having it as a function makes it slower
2012-02-15 23:05:21 -06:00
gmarik
f6ce31fa38 https is a default proto
- as `http` one just redirects to `https` on GitHub
2011-12-20 03:07:12 -06:00
gmarik
3e7b39fe52 introduce g:vundle_default_git_proto option
- use `let g:vundle_default_git_proto = 'git'` to set default protocol
to build URIs to clone from
2011-12-20 03:06:21 -06:00
gmarik
162b1bdd4f treat transcient bundles as configured
- "transcient bundle" - a bundle installed with :BundleInstall or interactively
  without being declared in .vimrc

- treat them the as if they were configured
- so everything works the same

- ie before this change helptags weren't generated automatically
  with `BundleInstall bundle` or with interactive mode

- it changes the way `:BundleClean` works, since it removes directories
  that aren't bundles
- FIX: `:source .vimrc` to let `:BundleClean` remove transcient bundles

- closes #99
2011-12-20 02:06:40 -06:00
gmarik
43080a1e5c ignore wildignore with expand/glob
- closes #110
2011-11-18 01:23:40 -06:00
Jacobo de Vera
f1bfa5f6cf Append '.git' to uris for short form repos
Uris for repos specified as user/repo end up being https://github.com/user/repo. For some reason, github allows cloning from such uris, however, it is better to rely on the addresses that github provide for cloning, and those include the trailing .git

This change appends .git to github repo uris when needed.
2011-08-04 01:59:20 +02:00
gmarik
e3623da0f9 use specified name with :BundleInstall
- otherwise it defautls to vim-scripts repos
- closes #69
- TODO: pass options aswell
2011-08-03 17:17:20 -05:00
gmarik
063f68b26e expand path 2011-06-03 18:52:04 -05:00
gmarik
a69866a942 expand bundle path
- closes #37
- join is useless there
2011-05-27 18:56:02 -05:00
gmarik
a2c5d5442d Fix regex 2011-05-23 14:30:50 -05:00
Dmitri Iouchtchenko
76273c31a1 fix parsing of GitHub repo paths
GitHub usernames cannot start with an underscore, but they can be a
single character long.
2011-05-06 21:07:47 -04:00
gmarik
c8d17b1cc6 ignore case when parsing name 2011-04-23 01:00:39 -05:00
gmarik
1599927a43 allow dash as github username 2011-04-23 00:53:34 -05:00
gmarik
31dde613fc use appropriate escape function 2011-04-10 18:42:18 -05:00
gmarik
61bfc5ab9f windows support 2011-04-09 18:54:18 -05:00
gmarik
9dcdbf16c6 support file:// scheme and repo/.git path 2011-04-03 15:30:45 -05:00
termac
7e7cde6444 fix regex for local repositories 2011-03-31 21:18:13 +02:00
gmarik
92743769fb Remove quotes from names and uris 2011-03-19 21:31:49 -05:00
gmarik
3edc20673d go without Vundle log 2011-03-19 17:43:06 -05:00
gmarik
dd5b44db2c require bunch 2011-03-19 15:18:56 -05:00
gmarik
5ce63c7de1 support short github uris
- ie, like this
Bundle 'gmarik/vundle'
2011-03-12 01:54:41 -06:00
gmarik
bf5e062927 use https instead http 2011-03-10 23:06:25 -06:00
gmarik
3f216f13e4 support gh: and github: uri shorthands 2011-03-10 23:04:24 -06:00
gmarik
f99ca2e5ac replaced loops with functional analogues 2011-03-10 22:41:14 -06:00
gmarik
fb77c082e6 add bundle.rtpath to &rtp on require 2011-03-06 17:21:43 -06:00
gmarik
b3216ac594 do not require on load
- this was intended for case when user uncomments installed `Bundle` and
reloads .vimrc; which should make the bundle available
- TODO: later
2011-03-06 17:18:03 -06:00
gmarik
117ff5c27c allow :BundleInstall script_name 2011-03-06 15:23:25 -06:00
gmarik
2aa86954ea Bugfix: Fixed pattern 2011-02-03 23:21:32 -06:00
gmarik
8a253e4154 :VundleLog - shows commands log 2011-02-03 23:13:46 -06:00
gmarik
55a5ef041c Preserve rtp ordered according to Bundle declarations
- fixes https://github.com/gmarik/vundle/issues#issue/3
- TODO: not the most efficient approach
2011-01-09 22:27:59 -06:00
gmarik
46f5dcd5cc Issue with command-T and explicit loading 2010-12-14 14:49:48 -06:00
gmarik
e9f430ee0e TODOs 2010-12-08 23:15:10 -06:00
gmarik
e1b4ef5f09 Require installed script
- so it's ready to use right after installation
2010-12-08 22:55:16 -06:00
gmarik
04ac11f435 Fixed some dependencies 2010-12-08 22:52:58 -06:00
gmarik
5db64d6709 autoload/vundle.vim extracted into smaller files
- vundle.vim - entrypoing and loader
- config.vim - configuration and runtimepath management
- installer.vim - installation and docs
2010-12-08 22:31:11 -06:00