Ⅰ. 插件描述
HTML/XHTML editing macros and menusⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/html-zip'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/html-zip'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/html-zip'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/HTML.zip
Ⅳ. 文档说明
This is a set of HTML/XHTML mappings and menus for Vim 7 or later. The mappings will be local to the buffer so they won't interfere if you edit other files in the same Vim session.
The macros automatically insert a tag and position the cursor at the logical insert point. For example, in insert the mapping ";ah" inserts and leaves the cursor between the double quotes. If you were to visually highlight some text then type ";ah" it would wrap the tag around the text. For example:
some text
Becomes:
some text
With the cursor positioned between the double quotes in insert mode. Or if you used ";aH" instead:
With the cursor positioned between the > and the < in insert mode.
There are many other features, such as a configurable template inserted with the ";html" normal mode macro, browser remote control mappings, etc.
See https://christianrobinson.name/vim/HTML/faq.shtml for frequently asked questions.
See https://christianrobinson.name/vim/HTML/HTML.html to preview the help file.