Permalink
Browse files

- Added base attribute.

  • Loading branch information...
1 parent 49fd6d2 commit 56b3756e617df5e6441afca0ec143a4dafb1a730 @Shougo committed Apr 17, 2012
Showing with 18 additions and 4 deletions.
  1. +4 −2 autoload/neobundle/config.vim
  2. +14 −2 doc/neobundle.txt
@@ -1,7 +1,7 @@
"=============================================================================
" FILE: config.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu at gmail.com>
-" Last Modified: 13 Apr 2012.
+" Last Modified: 17 Apr 2012.
" License: MIT license {{{
" Permission is hereby granted, free of charge, to any person obtaining
" a copy of this software and associated documentation files (the
@@ -125,7 +125,9 @@ endfunction
function! neobundle#config#init_bundle(name, opts)
let bundle = extend(s:parse_name(substitute(a:name,"['".'"]\+','','g')),
\ s:parse_options(a:opts))
- let bundle.path = s:expand_path(neobundle#get_neobundle_dir().'/'.
+ let bundle.base = s:expand_path(get(bundle, 'base',
+ \ neobundle#get_neobundle_dir()))
+ let bundle.path = s:expand_path(bundle.base.'/'.
\ get(bundle, 'directory', bundle.name))
let bundle.rtp = s:expand_path(bundle.path.'/'.get(bundle, 'rtp', ''))
if bundle.rtp =~ '[/\\]$'
View
@@ -44,6 +44,9 @@ Vundle.vim(https://github.com/gmarik/vundle), But I added some features.
For example:
* Uses |vimproc| when you have it
* |unite.vim| interface
+ * Revision lock
+ * Supports svn/Mercurial repository
+ * Specify base path
==============================================================================
USAGE *neobundle-usage*
@@ -116,14 +119,19 @@ COMMANDS *neobundle-commands*
Note: If you omit the protocol(ex: git or https) in git type,
|g:neobundle_default_git_protocol| is used.
- {dictionary} has following keys.
+ {dictionary} has following keys:
+
rev (String)
Revision number or branch/tag name.
directory (String)
Relative directory path from base directory(set by
|neobundle#rc()|).
+ base (String)
+ Directory base path. If you omit it, used |neobundle#rc()| base
+ path.
+
type (String)
Repository type. If you omit repository type, it is detected
automatically from {repository}.
@@ -155,8 +163,11 @@ COMMANDS *neobundle-commands*
<
If type is "nosync", neobundle does not update
automatically(like pathogen.vim).
+ Note: If you want to use neobundle like pathogen.vim, you
+ should set base path to separate from standard neobundle
+ bundles paths.
>
- NeoBundle 'muttator', {'type' : 'nosync'}
+ NeoBundle 'muttator', {'type' : 'nosync', 'base' : '~/.vim/bundle'}
<
:NeoBundleInstall [{repository}] *:NeoBundleInstall*
Installs {repository} plugins.
@@ -285,6 +296,7 @@ CHANGELOG *neobundle-changelog*
2012-04-17
- Updated documentation.
+- Added base attribute.
2012-04-13
- Added g:neobundle_default_git_protocol variable.

0 comments on commit 56b3756

Please sign in to comment.