Ⅰ. 插件描述
Adds a header -author, path, timestamp- when a new file is created.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/header-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/header-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/header-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/header.vim
Ⅳ. 文档说明
When a new file is created the plugin inserts automatically a customizable header on the top -filetype, author, timestamp-. When the file it's no new -so it's already created- the plugin checks the 'last modified' field in line number five -if this exists- and then it updates its value. It's my first vim plugin and it's very plain -I beg pardon to vim's gurus for my daring!- I didn't find anything alike, so I had to write my own script. Any correction or modification will be welcome.