Modeliner : Generates modeline according to the current settings.
script karma |
Rating 18/12,
Downloaded by 2950 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Shuhei Kubota |
|
script type |
utility |
|
description |
[How to use it?]
execute ':Modeliner'.
[And, what will happen?]
If your current settings are like below:
- setl fenc=utf-8
- setl et
- setl sts=4
then you will get a modeline like:
- for 'c' filetype:
/* vim: set fenc=utf-8 et sts=4 : */
- for 'xml' filetype:
<!-- vim: set fenc=utf-8 et sts=4 : -->
[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' |
|
install details |
Put this plugin in your plugin directory(e.g. $VIMRUNTIME/plugin).
Then restart Vim or :source it. |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 142.132.191.50
|