forked from VimPlug/emmet-vim
b2561af319a52d3527583ab8878fc88ed3422b51
Emmet-vim
emmet-vim is a vim plug-in which provides support for expanding abbreviations similar to emmet.
Installation
cd ~/.vim
unzip emmet-vim.zip
To install using pathogen.vim:
cd ~/.vim/bundle
unzip /path/to/emmet-vim.zip
To checkout the source from repository:
cd ~/.vim/bundle
git clone http://github.com/mattn/emmet-vim.git
or:
git clone http://github.com/mattn/emmet-vim.git
cd emmet-vim
cp plugin/emmet.vim ~/.vim/plugin/
cp autoload/emmet.vim ~/.vim/autoload/
cp -a autoload/emmet ~/.vim/autoload/
Quick Tutorial
Open or create a New File:
vim index.html
Type ("_" is the cursor position):
html:5_
Then type "<c-y>," (Ctrl + y + ','), you should see:
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
_
</body>
</html>
Enable in different mode
If you don't want to enable emmet in all modes,
you can use set these options in vimrc:
let g:user_emmet_mode='n' "only enable normal mode functions.
let g:user_emmet_mode='inv' "enable all functions, which is equal to
let g:user_emmet_mode='a' "enable all function in all mode.
Project Authors
Links
Emmet official site:
zen-coding official site:
emmet.vim:
development repository:
my blog posts about zencoding-vim:
Japanese blog posts about zencoding-vim:
A Chinese translation of the tutorial:
Description
Languages
Vim Script
99.9%
Makefile
0.1%