Modeliner is a project mainly written in Vim Script, it's free.
Generates modeline according to the current settings.
This is a mirror of http://www.vim.org/scripts/script.php?script_id=1477
[How to use it?]
execute ':Modeliner'.
[And, what will happen?]
If your current settings are like below:
then you will get a modeline like:
[How to include my favorite options?]
Modify g:Modeliner_format. It is a simple format.
An example: let g:Modeliner_format = 'fenc= tw= et ts= sts= sw= backup wrap'