authorinfo


Ⅰ. 插件描述

dantezhu 's AuthorInfo plugin (depend on NERD commenter) cloned for vundle

Ⅱ. 基本信息

创建日期:  2012-04-10
使用用户:  1
Github星:  2
插件作者:  荒野无灯

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'ihacklog/authorinfo-tree-and-truth'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'ihacklog/authorinfo-tree-and-truth'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'ihacklog/authorinfo-tree-and-truth'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/ihacklog/authorinfo

Ⅳ. 文档说明

#AuthorInfo

This is a mirror of http://www.vim.org/scripts/script.php?script_id=2902

currently version is cloned from https://bitbucket.org/lidashuang/vim-files/raw/66406cfce52a/.vim/bundle/AuthorInfo/plugin/authorinfo.vim

clone it here just for working correctly with vundle.

You can add your author info in any source files,such as cpp,c,java,and c#,python,php,bash....
Like this:

/*=============================================================================
#  Author:          dantezhu - http://www.vimer.cn
#  Email:           zny2008@gmail.com
#  FileName:        test2.cpp
#  Description:     
#  Version:         0.0.1
#  LastChange:      2011-02-15 19:32:25
#  History:         
=============================================================================*/

when you type <Leader>aid,this will add in the head of your source file,and when you type <Leader>aid again,It will update automatically.

1)you need install The NERD Commenter first.
url is : http://www.vim.org/scripts/script.php?script_id=1218

2)you need some config in vimrc:

let g:vimrc_author='dantezhu'
let g:vimrc_email='zny2008@gmail.com'
let g:vimrc_homepage='http://www.vimer.cn'

nmap <Leader>aid :AuthorInfoDetect<cr>

dantezhu 's homepage is http://www.vimer.cn

添加新评论