Ⅰ. 插件描述
a simple vim.org scripts manager plugin for vimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'beyondim/vim-script-bundle'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'beyondim/vim-script-bundle'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'beyondim/vim-script-bundle'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/beyondim/vim-script-bundle
Ⅳ. 文档说明
## About
[Vim-script-bundle] [] is a vim.org scripts manager plugin for vim.
Quick start
Setup [Vim-script-bundle] []
$ git clone https://github.com/BeyondIM/vim-script-bundle.git ~/.vim/scripts/scriptbundleConfigure scripts
Sample
.vimrcset runtimepath+=$HOME/.vim/scripts/scriptbundle/ " Set a vim.org reverse proxy server if vim.org can't get access. " let g:vimSiteReverseProxyServer = 'http://vim.wendal.net' " Set http or socks proxy if vim.org can't get access. " let g:curlProxy = 'http://127.0.0.1:8888' " let g:curlProxy = 'socks5://127.0.0.1:8888' " Some scripts require 7zip to extract. " let g:extractApp = 'path_to_7z_execute_file' call scriptbundle#rc() " mark - http://www.vim.org/scripts/script.php?script_id=2666 Script '2666' " matchit - http://www.vim.org/scripts/script.php?script_id=39 Script '39' " align - http://www.vim.org/scripts/script.php?script_id=294 Script '294' " mayansmoke - http://www.vim.org/scripts/script.php?script_id=3065 " Move script to subdirectory to get work properly. Script '3065', {'subdir':'colors'} " Brief help " ScriptInstall - Install configured and non-installed scripts " ScriptInstall! - Reinstall all installed scripts " ScriptUpdate - Update all installed scripts " ScriptClean - Uninstall all unneeded scripts- Install configured scripts
Launch
vim, run:ScriptInstallInstalling requires [curl] [] and extracting requires [7zip] [].
Why Vim-script-bundle
[Vundle] [] is a great plugin for managing bundles, [Neobundle] [] is based on Vundle and has lots of new features. Both of them fetch vim.org scripts from [github.com/vim-scripts] [] instead of official site, but some scripts on github.com/vim-scripts are outdated, if you are puzzled by this, you should like [Vim-script-bundle] [], which fetchs vim.org scripts from official site and provides convenience mechanism to manage scripts as Vundle manages bundles.