CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 11:36:31 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"a8fe59fec4a6983094d7792f1f9afe0d"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=KVog30GMtYv4ttyUCrfWNmtI2oM%2BRDl7%2BS36eZxy6RjAb622bHcwgxuuHoGtXVz7fN1Iw0mOEiG%2Fl5w9J2Pkvs5hU4LjOQdKbu6KeG7qe%2BHwJ5WXqXK6J%2BDlr8OhqriMMIx82Y3IaLlqVDxjvHTsrNbJkob3AzAJuivALml7g8OpQ1obO9W8E71yqKvJNvPPFJ3Pu1IwR5mh9lZcQXUDWj5vlJri7voBdxOT94HMAXzJbeCJl5vzP0NlR9Hh7O0hmI4jd4tWc5y8PDLTK0PrFg%3D%3D--coQJ6vzX6IgTt2b1--AGeAyYCnoK%2FedesJ67IGTw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.961732727.1753616190; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 11:36:30 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 11:36:30 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 9BA0:3B05D7:DA9266:120C1C0:68860F3E
GitHub - vim-scripts/Licenses: Provides commands to add licenses at the top of the buffer
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 0
Provides commands to add licenses at the top of the buffer
License
vim-scripts/Licenses
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a mirror of https://www.vim.org/scripts/script.php?script_id=4871 This plugin provides commands to insert licenses at the top of the buffer. If the license is already at the top of the buffer, nothing is added. This plugin works for the most popular programming languages, including C, Java, Objective-C, C++, C#, PHP, Python, JavaScript, Ruby, Perl, Asm and Haskell. The HTML and CSS languages are also supported. It may work for other languages. There are currently more than 10 licenses, and you can add your own. To do so, copy the license text in ~/.vim/licenses/licenseFile.txt. Then add a command for this license: command! License call InsertLicense('licenseFile') If your license file contains a <year> tag, it will be automatically replaced by the current year. And the <name of author> tag will be automatically replaced by the the content of the g:licenses_authors_name variable (if not empty), so that your name will be automatically added to the license. Thus, you may want to add such a line to you .vimrc: let g:licenses_authors_name = 'Last Name, First Name <my@email.com>' If you do not want this plugin to create all these commands, you may restrict to the licenses you want by using the g:licenses_default_commands option. For instance, to have this plugin add only a command for the GNU GPL, Mit and Foobar licenses, use this: let g:licenses_default_commands = ['gpl', 'mit', 'foobar'] Commands: :Affero Add the GNU Affero license to the buffer. :Apache Add the Apache License 2.0 to the buffer. :Bsd2 Add the BSD 2-Clause "New" or "Revised" license to the buffer. :Bsd3 Add the BSD 3-Clause "Simplified" or "FreeBSD" license to the buffer. :Epl Add the Eclipse Public License to the buffer. :Gfdl Add the GNU Free Documentation License (FDL) to the buffer. :Gpl Add the GNU General Public License (GPL) version 3.0 to the buffer. :Gplv2 Add the GNU General Public License (GPL) version 2.0 to the buffer. :Lgpl Add the GNU "Lesser" General Public License (LGPL) license to the buffer. :Mit Add the MIT license to the buffer. :Mpl Add the Mozilla Public License 2.0 to the buffer. :Unlicense Add the Unlicense to the buffer. :Wtfpl Add the Do What The Fuck You Want To Public License (WTFPL) to the buffer. :Zlib Add the Zlib License to the buffer. Settings: The g:licenses_authors_name option The name of author to automatically insert in the buffer in the licence. The g:licenses_default_commands option Choose what commands to create for the listed licenses. Git repository: https://github.com/antoyo/vim-licenses
About
Provides commands to add licenses at the top of the buffer
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published
You can’t perform that action at this time.