GithubHelp home page GithubHelp logo

jackboberg / html_entities_helper.vim Goto Github PK

View Code? Open in Web Editor NEW

This project forked from apcomplete/html_entities_helper.vim

0.0 2.0 0.0 118 KB

HTML Entities helper functions for Vim

License: The Unlicense

html_entities_helper.vim's Introduction

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

Changelog

  • 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.

Notes

Currently conversions are across the entire current Vim buffer, future version will work on a visual selection but if you need to work on a sub section of a buffer in the meantime copy it to a new buffer, convert and paster back in.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.