Create and customize file headers, no frills
Plug 'matrinox/vim-simple-header', { 'on': 'AddHeader' }
First download the repo
git clone git@github.com:matrinox/vim-simple-header.git ~/.vim-simple-header
Last add it to the runtimepath so that vim can pick it up
set runtimepath+=~/.vim-simple-header
To add a header to the top of the file
:AddHeader
To do this automatically for your files, add this to your .vimrc
autocmd BufNewFile *.vim :AddHeader
Currently supported filetypes are:
- vim
- ruby
- c
- css
- groovy
- java
- javascript
- javascript.jsx
- php
- sass
Suggest more filetypes by creating an issue
Set g:simple_header_lines
array with the lines you want in order
let g:simple_header_lines = ['John Smith', 'john.smith.example@gmail.com']
If you want dynamic text like the current date, use functions or any valid vimscript
let g:simple_header_lines = ['John Smith', 'Today is %{strftime("%c")}']
To add copyright with year, enable g:simple_header_include_copyright
let g:simple_header_include_copyright = 1