Ⅰ. 插件描述
vim的插件自动添加文件头信息,支持多种编程语言Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'hhktony/vim-authorinfo'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'hhktony/vim-authorinfo'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'hhktony/vim-authorinfo'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/hhktony/vim-authorinfo
Ⅳ. 文档说明
基于网上的 header.vim 做的修改
INSTALLATION
If you use Vundle you can install this plugin using following Vim command:
:BundleInstall ButBueatiful/vim-authorinfo
In addition, don't forget put a line Bundle 'ButBueatiful/vim-authorinfo' into your _.vimrc_.
If you use pathogen.vim, you can do install this plugin with these commands:
cd ~/.vim/bundle
git clone https://github.com:ButBueatiful/vim-authorinfo.git
You don't use either plugin management systems, copy autoload and plugin directory to your .vim directory.
CONFIGURETION
Add the following line to your .vimrc:
let g:authorinfo_author='Yourname'
let g:authorinfo_email='Youremail'
let g:authorinfo_company='Yourcompany'