Ⅰ. 插件描述
helps editing xml (and [x]html, sgml, xslt) filesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'othree/xml-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'othree/xml-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'othree/xml-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/othree/xml.vim
Ⅳ. 文档说明
Fix some bug by othree.
This is a mirror of http://www.vim.org/scripts/script.php?script_id=1397
A plugin for editing xml. I used xml.vim (http://www.vim.org/scripts/script.php?script_id=301)
The script does retain most of the functionality of the original xml.vim
- closing tags while you type
- optional adding attributes
- and more
- % matches end or begin tag
adds:
- fold tags, comments and Cdata
- add start tag
- add end tags
- add tag around a visual blok or a tag,
- join 2 adjacent same tags
- delete tag
- delete tag section
- change a tag
- visual mode (blocks, listitems
The documentation will be created once the script is loaded e.g edit a xml file.
Read the help documentation by typing from within vim :help xml-plugin