vim-cpywrite : Generate copyright headers for any open source license
| script karma
Downloaded by 76
Comments, bugs, improvements
script versions (upload new version)
|Robert Di Pardo|
|Pass a license identifier to the :CPYwrite command and it will insert the
standard header, if available, at the top of the current buffer.
When g:cpywrite_verbatim_mode is off, licenses with no standard header will
be acknowledged below your author line. Turn on g:cpywrite_verbatim_mode to
use the full license text instead.
This plugin learns your name and email by invoking `git`; it falls back to
your OS user and host names.
Fetches the license identified by `spdx_short_name` (without quotes)
-- uses the current value of `g:cpywrite_default_license` when no argument is
given -- supports <tab> completion
Sets g:cpywrite_default_license to the given SPDX license identifier (without
quotes) and prints the updated value. Use <tab> for name completion.
Simply prints g:cpywrite_default_license when called with no argument.
Toggles the state of the g:cpywrite_verbatim_mode option and prints a
description of the updated state:
0 == "standard header/brief"
1 == "verbatim"
Does the same as calling :CPYwrite with no argument
Maps to <Plug>(cpywrite)
g:cpywrite_verbatim_mode (number; default: 0)
When set to 1, the full license text will be requested, whether or not a
standard header exists. You should only choose this when the license is no
longer than 3-4 paragraphs (e.g. Unlicense, MIT, BSD 1- 2- 3-Clause, etc.)
When set to 0, only standard headers are requested. Licenses with no standard
header will be briefly mentioned below your copyright line.
g:cpywrite_default_license (string; default: 'GPL-3.0-or-later')
Set this to the SPDX identifier of your favourite license. Press <tab> after
the :CPYwriteDefaultLicense or :CPYwrite command for suggestions.
- install vader.vim (vimscript #4832) into your runtime path
- alternatively, run `git clone https://github.com/junegunn/vader.vim.git` and
edit `test/vimrc` by changing
- change directories into /your/plugin/path/vim-cpywrite
- issue these commands:
pip install -r test/requirements.txt
vim -ENsu test/vimrc -c '+Vader! test/vader/*' > /dev/null
|Make sure your environment has the requirements listed at https://github.com/rdipardo/vim-cpywrite#requirements
For a detailed installation guide, refer to https://github.com/rdipardo/vim-cpywrite#installation
Click on the package to download.
ip used for rating: 220.127.116.11