https://github.com/hattya/license.vim
A Vim plugin to insert license to buffer
https://github.com/hattya/license.vim
header license spdx vim
Last synced: 8 months ago
JSON representation
A Vim plugin to insert license to buffer
- Host: GitHub
- URL: https://github.com/hattya/license.vim
- Owner: hattya
- License: mit
- Created: 2016-05-18T14:32:29.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2025-10-06T14:15:16.000Z (8 months ago)
- Last Synced: 2025-10-06T16:21:21.938Z (8 months ago)
- Topics: header, license, spdx, vim
- Language: Vim Script
- Homepage:
- Size: 92.8 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
license.vim
===========
license.vim is a Vim plugin to insert a license to the buffer, or replace the
specified range of the buffer by a license.
It can also insert an `SPDX ID`_ to the buffer.
.. image:: https://github.com/hattya/license.vim/actions/workflows/ci.yml/badge.svg
:target: https://github.com/hattya/license.vim/actions/workflows/ci.yml
.. image:: https://ci.appveyor.com/api/projects/status/qwqdt6wm9y03f9ar/branch/master?svg=true
:target: https://ci.appveyor.com/project/hattya/license-vim
.. image:: https://codecov.io/gh/hattya/license.vim/branch/master/graph/badge.svg
:target: https://codecov.io/gh/hattya/license.vim
.. image:: https://img.shields.io/badge/powered_by-vital.vim-80273f.svg
:target: https://github.com/vim-jp/vital.vim
.. image:: https://img.shields.io/badge/doc-:h%20license.txt-blue.svg
:target: doc/license.txt
.. _SPDX ID: https://spdx.org/ids
Installation
------------
Vundle_
.. code:: vim
Plugin 'hattya/license.vim'
vim-plug_
.. code:: vim
Plug 'hattya/license.vim'
dein.vim_
.. code:: vim
call dein#add('hattya/license.vim')
.. _Vundle: https://github.com/VundleVim/Vundle.vim
.. _vim-plug: https://github.com/junegunn/vim-plug
.. _dein.vim: https://github.com/Shougo/dein.vim
Requirements
------------
- Vim 8.0+
Usage
-----
.. code:: vim
License MIT
or
.. code:: vim
SPDXLicense MIT
Testing
-------
license.vim uses themis.vim_ for testing.
.. code:: console
$ cd /path/to/license.vim
$ git clone https://github.com/thinca/vim-themis
$ ./vim-themis/bin/themis
.. _themis.vim: https://github.com/thinca/vim-themis
License
-------
license.vim is distributed under the terms of the MIT License.