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