Ⅰ. 插件描述
source vim plugins and remote scriptsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'suderman/source-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'suderman/source-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'suderman/source-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/suderman/source.vim
Ⅳ. 文档说明
source.vim
Super-fast install!
git clone git://github.com/suderman/source.vim.git
cp source.vim/plugin/source.vim ~/.vim/plugin/source.vim
Start your .vimrc with this:
runtime plugin/source.vim
Usage
Use in a similar fashion as the built-in source command:
Source git://github.com/mileszs/ack.vim.git
Source git://gist.github.com/1229444.git
Source https://raw.github.com/gist/1229444/6d07d825fa99a26d2dcc0fd83e9a8b1c78978bfa/statusline-help.vim
If sourcing a repository on Github, you can source the project page instead:
Source https://github.com/mileszs/ack.vim
Source https://gist.github.com/1229444
If installing a plugin requires a few commands, add them after the repository:
Source git://git.wincent.com/command-t.git rake make
Automatic updates occur once a week when starting Vim. This will git pull any repositories and re-download any other files. You can
force an update calling the Source command with a bang:
Source! https://github.com/kien/ctrlp.vim
For a working example, take a look at my vimrc.
Requirements
Several system commands are called: echo, cat, cd, mkdir, rm, mv, date.
Also, if sourcing a git repository, the git command is used. And if sourcing
a regular text, the curl command is used.
I've only tested this with OS X 10.7 and Ubuntu 10.04.4 LTS.
Things to do...
- Write this as an actual help doc for Vim
- Make this work on Windows (I suppose..?)