Ⅰ. 插件描述
keyboard shortcuts and GUI menu for xhtml tagsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/xhtml-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/xhtml-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/xhtml-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/xhtml.vim
Ⅳ. 文档说明
This script creates shortcuts for most xhtml tags, and in gvim it adds a menu for the various tags. Shortcuts are triggered by the semicolon. For example ;li will create open and close "list item" tags and leave the cursor between them. Similarly ;im creates an image tag and leaves the cursor in the first field.
Ctrl-J is bound to a kind of "jump" and will generally place the cursor at the next place you would want to type (the next field or the place just before the next tag starts).
There are bindings for the 3 modes; command mode, insert mode, and visual mode; as well as some special characters like ;cp (copyright symbol) and ;< (less than symbol).