vim-header


Ⅰ. 插件描述

Easily adds brief author info and license headers

Ⅱ. 基本信息

创建日期:  2015-09-23
使用用户:  1
Github星:  2
插件作者:  Parham Alvani

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '1995parham/vim-header'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '1995parham/vim-header'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '1995parham/vim-header'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/1995parham/vim-header

Ⅳ. 文档说明

# vim-header
Travis branch
Codacy Badge

Introduction

Advance-Dummy source codes header generator based on neovim python client.

NeoVIM Configuration

In order to use vim-header plugin with
Plug plugin manager,
add following comamnd in your neovim configuration (init.vim):

Plug '1995parham/vim-header', {'do': ':UpdateRemotePlugins'}

You must set your name and your email in your vim configuration (init.vim)
for vim-header plugin as follow:

g:header_name = "Your Name"
g:header_email = "youremail@mail.com"

Header Template Configuration

You can create new header template for your custom language
or modify existing ones. template language is based on [python
format](https://docs.python.org/3/library/string.html#formatspec).

Following table shows variables you have in
header template.

VariableDescription
* - =Symbols
userUser details
timeDatetime object
fileTarget filename

for header template samples see conf/header

Dependencies

  • Neovim
  • Python3

Contribution

If you have time ... nothing else just time ... you can do what
you want to do with this dummy neovim plugin. :joy:

添加新评论