Ⅰ. 插件描述
Taste the difference.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'kana/vim-flavor'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'kana/vim-flavor'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'kana/vim-flavor'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/kana/vim-flavor
Ⅳ. 文档说明
# vim-flavor, a tool to manage your favorite Vim plugins
Getting started
cd $YOUR_REPOSITORY_FOR_DOTFILES
cat >Flavorfile <<'END'
# * Declare using git://github.com/kana/vim-textobj-indent.git
# * vim-flavor fetches git://github.com/$USER/$REPO.git
# if the argument is written in '$USER/$REPO' format.
# * kana/vim-textobj-indent requires kana/vim-textobj-user.
# Such dependencies are automatically installed
# if the flavored plugin declares its dependencies with Flavorfile.
flavor 'kana/vim-textobj-indent'
# * Declare using git://github.com/vim-scripts/fakeclip.git
# * vim-flavor fetches git://github.com/vim-scripts/$REPO.git
# if the argument is written in '$REPO' format.
flavor 'fakeclip'
# * Declare using git://github.com/kana/vim-altr.git
# * vim-flavor fetches the URI
# if the argument seems to be a URI.
flavor 'git://github.com/kana/vim-altr.git'
# * Declare using kana/vim-smartchr 0.1.0 or later and older than 0.2.0.
flavor 'kana/vim-smartchr', '~> 0.1.0'
# * Declare using kana/vim-smartword 0.1 or later and older than 1.0.
flavor 'kana/vim-smartword', '~> 0.1'
# * Declare using kana/vim-smarttill 0.1.0 or later.
flavor 'kana/vim-smarttill', '>= 0.1.0'
END
# Fetch the plugins declared in the Flavorfile,
# create Flavorfile.lock for a snapshot of all plugins and versions,
# then install the plugins into ~/.vim.
vim-flavor install
git add Flavorfile Flavorfile.lock
git commit -m 'Use vim-flavor to manage my favorite Vim plugins'
See also
the documentation on relish orfeatures/ directory for the details.
License
vim-flavor is released under the terms of MIT license.
See the LICENSE file for the details.
Author
- Kana Natsuno
(also known as @kana1)
<!-- vim: set expandtab shiftwidth=4 softtabstop=4 textwidth=78 : -->
