{"issue":{"milestone":null,"user":{"id":341473,"login":"zhaocai","url":"https://api.github.com/users/zhaocai","avatar_url":"https://secure.gravatar.com/avatar/e1c41638f81b6066591ae7dec13b1fd5?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e1c41638f81b6066591ae7dec13b1fd5"},"created_at":"2011-12-19T04:30:20Z","title":"improve to support bundles managed by other add-on managers","labels":[],"state":"closed","updated_at":"2011-12-19T05:02:05Z","id":2596823,"closed_at":"2011-12-19T04:45:30Z","pull_request":{"patch_url":"https://github.com/Shougo/neobundle.vim/pull/7.patch","html_url":"https://github.com/Shougo/neobundle.vim/pull/7","diff_url":"https://github.com/Shougo/neobundle.vim/pull/7.diff"},"html_url":"https://github.com/Shougo/neobundle.vim/issues/7","body":"add a simple command `NeoExternalBundle` to let neobundle to manage bundles managed by other add-on managers like vundle, vim-addon-manager, etc. The reason for that is to be able to use unite to mange the bundles...\r\n\r\nPersonally, this is useful because `vim-addon-manager` can load bundles on-demand at runtime. Therefore, i can group bundles into groups of flavors like dev-perl, dev-c, dev-vim, ... and load then using `FileType` autocmd or do it manually. ","number":7,"url":"https://api.github.com/repos/Shougo/neobundle.vim/issues/7","comments":3,"assignee":null},"comment":{"user":{"id":341473,"login":"zhaocai","url":"https://api.github.com/users/zhaocai","avatar_url":"https://secure.gravatar.com/avatar/e1c41638f81b6066591ae7dec13b1fd5?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e1c41638f81b6066591ae7dec13b1fd5"},"created_at":"2011-12-19T05:02:05Z","updated_at":"2011-12-19T05:02:05Z","id":3199329,"body":"\r\n\r\nSorry, I forgot the doc... It would be something like the below code except for the `VimPostInit()`, I may add `au` based on `&ft` and maybe some other criteria.\r\n\r\n```vim\r\n\r\nlet g:bundle_manager = {\r\n\t    \\'neobundle'         : 1,\r\n\t    \\'vundle'            : 0,\r\n\t    \\'vim-addon-manager' : 1,\r\n\t    \\'tplugin_vim'       : 0,\r\n\t    \\}\r\n\" neobundle\r\nif g:bundle_manager['neobundle'] == 1\r\n    set runtimepath+=~/.vim/bundle/neobundle.vim/\r\n    call neobundle#rc(expand('~/.vim/bundle/'))\r\n    command! -nargs=+ Bundle call neobundle#config#bundle(<args>)\r\n\r\n    Bundle 'Shougo/neobundle.vim'\r\n\" vundle\r\nelseif g:bundle_manager['vundle'] == 1\r\n    set rtp+=~/.vim/bundle/vundle/\r\n    call vundle#rc()\r\n    let g:vundle_win_width = 36\r\n\r\n    Bundle 'gmarik/vundle'\r\n\r\n    \" Note: comments after Bundle command are not allowed..\r\nendif\r\n\r\nif g:bundle_manager['vim-addon-manager'] == 1\r\n    \" vim-addon-manager\r\n    let vam_install_path = expand('$HOME') . '/.vim/bundle'\r\n    exec 'set runtimepath+='.vam_install_path.'/vim-addon-manager'\r\n\r\n    if !filereadable(vam_install_path.'/vim-addon-manager/.git/config') \r\n\t\t\\ && 1 == confirm(\"git clone VAM into \".vam_install_path.\"?\",\"&Y\\n&N\")\r\n\texec '!p=' . shellescape(vam_install_path) \\\r\n\t\t\\ . '; mkdir -p \"$p\" && cd \"$p\" && git clone --depth 1 git://github.com/MarcWeber/vim-addon-manager.git'\r\n\texec 'helptags '.fnameescape(vam_install_path.'/vim-addon-manager/doc')\r\n    endif\r\n\r\nendif\r\nau VimEnter * call g:VimPostInit()\r\n\r\nfun! g:VimPostInit()\r\n    let l:bundles = ['vim-pandoc', 'perl-support.vim']\r\n    call vam#ActivateAddons(l:bundles, {'auto_install' : 0})\r\n    for b in l:bundles\r\n\tNeoExternalBundle b\r\n    endfor\r\nendf\r\n\r\n```\r\n","url":"https://api.github.com/repos/Shougo/neobundle.vim/issues/comments/3199329"},"action":"created"}