Ⅰ. 插件描述
Global plugin for adding patch tags from linux SubmittingPatches documentⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/git-patch-tags-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/git-patch-tags-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/git-patch-tags-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/git_patch_tags.vim
Ⅳ. 文档说明
Global plugin for adding patch tags as defined in the linux kernel
Documentation/SubmittingPatches document, examples of patch tags are:
- Acked-by
- Signed-off-by
- Tested-by
- Reviewed-by
the plugin allows to add also a Copyright line.
The author name and email address are retrieved from the git configuration.
Examples:
<Leader>ack
Add a Acked-by tag getting developer info from git config
<Leader>cpy
Add a copyright line getting developer info from git config and using
the current date
<Leader>rev
Add a Reviewed-by tag getting developer info from git config
<Leader>sob
Add a Signed-off-by tag getting developer info from git config
<Leader>tst
Add a Tested-by tag getting developer info from git config