This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! LicenseGenerator() | |
let date = strftime("%c") | |
if &ft == "javascript" | |
return "/*jslint bitwise: true, browser: true, eqeqeq: true, immed: true, newcap: true, regexp: true, nomen: false, onevar: false, undef: true, plusplus: false, white: true, indent: 2 */\n/*global confirm define interpolate gettext console */\n\n// Created by Matthew Irish ([email protected]) on " . date . "\n/*! Copyright (c) 2012 Safari Books Online, LLC. All rights reserved.*/\n\n" | |
endif | |
if &ft == "python" | |
return "# encoding: utf-8\n\n# Created by Chuck Ha ([email protected]) on" . date . "\n# Copyright (c) 2012 Safari Books Online, LLC. All rights reserved.\n\n" | |
endif | |
endfun |