Skip to content

Latest commit

 

History

History
65 lines (42 loc) · 1.39 KB

README.mkd

File metadata and controls

65 lines (42 loc) · 1.39 KB

Fork of Emmet-vim

Trying to make it more HTML5 compatible

emmet-vim is a vim plug-in which provides support for expanding abbreviations similar to emmet.

Changes so far

  1. Removed attribute type="text/javascript" from <script> tag
  2. Removed attribute type="text/css" from <style> tag
  3. script:src - renders to <script scr=""></script>
  4. when rendering html:5 - cursor is located between <title></title> tags
  5. Removed closing slash from single tags - <br> instead of <br /> etc.

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>

Installation

Download zip file:

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/