Skip to content
A Vim plugin to encode and decode HTML entities
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc
plugin
LICENSE
README.md

README.md

html_encode_decode

This plugin allows you to easily encode or decode HTML entities in Vim.

Requirements

Requires Vim to be compiled with Ruby support

Usage

This will encode or decode the selected text, or the entire file if nothing is selected. Using the hencode and hdecode aliases noted in the Installation instructions below:

hencode - encodes the text with HTML entities hdecode - decodes HTML entities in the text

Licence

Copyright 2018 Kay Rhodes, a.k.a. masukomi and distributed under the MIT license. See https://github.com/masukomi/html_encode_decode for details.

Installation

Use your plugin manager of choice.

  • Pathogen
    • git clone https://github.com/masukomi/html_encode_decode ~/.vim/bundle/html_encode_decode
  • Vundle
    • Add Bundle 'https://github.com/masukomi/html_encode_decode' to .vimrc
    • Run :BundleInstall
  • NeoBundle
    • Add NeoBundle 'https://github.com/masukomi/html_encode_decode' to .vimrc
    • Run :NeoBundleInstall
  • vim-plug
    • Add Plug 'https://github.com/masukomi/html_encode_decode' to .vimrc
    • Run :PlugInstall

Then add the following to your .vimrc for easy invocation

" alliases for easy invocation of html_encode_decode
:cabbr hencode :call HTMLEncode()
:cabbr hdecode :call HTMLDecode()
You can’t perform that action at this time.