- Add header to the source file when creating file with vim automatically.
- shell/java/python/go/php/c# source support
run command vim test.php
, then you will get
<?php
/***************************************************************************
Copyright © 2020 rogerluo. All rights reserved.
**************************************************************************/
/**
* File: test.php
* Author: rogerluo[[email protected]]
* Created At: 2020-04-29 22:42:39
* desc:
*/
/* vim: set ts=4 sw=4 sts=4 tw=100 */
#!/bin/bash
###########################################################################
# Copyright © 2020 rogerluo. All rights reserved.
###########################################################################
# Author: rogerluo[[email protected]]
# Created At: 2020-04-29 22:49:51
# File: test.sh
# desc:
# vim: set ts=4 sw=4 sts=4 tw=100
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
###########################################################################
# Copyright © 2020 rogerluo. All rights reserved.
###########################################################################
# Author: rogerluo[[email protected]]
# Created At: 2020-04-29 22:51:17
# File: test.py
# desc:
# vim: set ts=4 sw=4 sts=4 tw=100
run command
$ curl -fsL -o ~/.vim/plugin/header.vim https://raw.githubusercontent.com/TJRoger/header.vim/master/header.vim