Skip to content

TJRoger/header.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

header.vim

  • Add header to the source file when creating file with vim automatically.
  • shell/java/python/go/php/c# source support

Guide

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

Installation

run command
$ curl -fsL -o ~/.vim/plugin/header.vim https://raw.githubusercontent.com/TJRoger/header.vim/master/header.vim

About

auto add header to your file when creating file with vim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published