转载: vim authorinfo
created by
script type ftplugin
description You can add your author info in any source files,such as cpp,c,java,and c#,python,php,bash.... Like this: /*=============================================================================
Author: dantezhu -
Email: zny2008@gmail.com
FileName: test2.cpp
Description:
Version: 0.0.1
LastChange: 2011-02-15 19:32:25
History:
=============================================================================*/ when you type ,this will add in the head of your source file,and when you type again,It will update automatically.
1)you need install The NERD Commenter first. url is :
2)you need some config in vimrc:
let g:vimrc_author='dantezhu' let g:vimrc_email='zny2008@gmail.com' let g:vimrc_homepage=''
nmap :AuthorInfoDetect
My homepage is ,and wellcome。
install details Put this file in the vim plugins directory (~/.vim/plugin/) to load it automatically.