Vim Installation Emmet Plugin

Source: Internet
Author: User


article Songyang    

This article is from the Asura road , prohibited for commercial purposes, reproduced please indicate the source.  

http://blog.csdn.net/fansongy/article/details/ 43154305


/span>

/p>





Why HTML

Recently agreed to learn to do mobile apps, want to go, or to start from the foundation, first the long-lost HTML pick up. Although I can native language, but used to cross-platform things:



Want to go, since is the application, efficiency should be, HTML should be enough. A good platform to cross. As a vim party, I found a plugin that looked good.

What ' s Emmet

Emmet is a plugin of VI, it can let me wait for more convenient editing HTML. You can find the latest information about it here.

Installation

Download the item to unzip it. Locate the file plugin and autoload copy it to the

~/.vim/.

Restart the terminal.

Test

Create a file, open with VI, enter:

Html:5

Note that the cursor is the last position, and I think it's the principle of detecting an expression from the beginning of the line to the cursor position, so if your cursor is somewhere else, the expression is incomplete.

Next is the time to witness the miracle, in the input mode, press ctrl+y and press ",". It will automatically generate the following code:

<! DOCTYPE html>

It looks so sour and cool.

More

And of course it has more usage. Automatically generate the format text, picture What, you can refer to the official document English is relatively simple, I do not human flesh translation; )


Vim Installation Emmet Plugin

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.