Search code examples
vimcode-signinggedit

How to add automatic signature to code files?


Many code files available on the internet contain signatures. Author, Company, Date Created, Last Edit, Sometimes a drawn symbol too and a description of license or whatever this is called.

Is there a way to create this in common text editors? Vim or Gedit for example.


Solution

  • See :help skeleton for a primitive way of doing this. It won't leave you placeholders that you can jump to or anything, for that you'd be better off with a snippet plugin. Skeletons are usually good enough for this sort of thing.