Ⅰ. 插件描述
Allows for automatic indentation of multiline element attributesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'jasonwoodland/vim-html-indent'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'jasonwoodland/vim-html-indent'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'jasonwoodland/vim-html-indent'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/jasonwoodland/vim-html-indent
Ⅳ. 文档说明
# vim-html-indent
HTML indent plugin for Vim. Based on xml.vim.
Allows for automatic indentation of multiline element attributes, for example:
<form action="/submit-form"
method="post"
name="myForm">
<label for="fullname">Your name: </label>
<input type="text"
id="fullname"
name="fullname"
placeholder="Full name">
<select name="sex">
<option value="male">Male</option>
<option value="female">Female</option>
</select>
<input type="submit" value="Send">
</form>Installation
If you have pathogen installed, simply copy and paste:
cd ~/.vim/bundle
git clone git://github.com/jasonwoodland/vim-html-indent.git