Ⅰ. 插件描述
Generates modeline according to the current settings.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/modeliner'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/modeliner'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/modeliner'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/Modeliner
Ⅳ. 文档说明
[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'