html_entities_helper.vim


Ⅰ. 插件描述

HTML Entities helper functions for Vim

Ⅱ. 基本信息

创建日期:  2011-05-09
使用用户:  4
Github星:  5
插件作者:  Chris Batchelor

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'firegoby/html-entities-helper-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'firegoby/html-entities-helper-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'firegoby/html-entities-helper-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/firegoby/html_entities_helper.vim

Ⅳ. 文档说明

HTML Entities Helper for Vim

A couple of handy search-and-replace functions for Vim that: -

  • convert unicode characters to their repspective named HTML entities
  • convert named HTML entities to their unicode codepoint equivalents
  • convert named HTML entities and unicode codepoints to their unicode character equivalents

Changelog

  • 1.1 - Support for operating over ranges (thanks to Nahuel Soldevilla)
  • 1.0 - Initial Version

Installation

Save yourself a lot of hassle and install Tim Pope's excellent Pathogen plugin to manage your Vim scripts.

Pathogen Users

Clone the github repository into your VIM/bundle directory. Or else add it as a git submodule to the same place.

Non-Pathogen Users

Copy html_entities_helper.vim into your VIM/plugin directory and restart.

Examples

<leader>He

Before: © Copyright 2011 · All Rights Reserved.

After: &copy; Copyright 2011 &middot; All Rights Reserved.

<leader>Hn

Before: &copy; Copyright 2011 &middot; All Rights Reserved.

After: &#169; Copyright 2011 &#183; All Rights Reserved.

<leader>Hd

Before: &#169; Copyright 2011 &middot; All Rights Reserved.

After: © Copyright 2011 · All Rights Reserved.

添加新评论