====== Tutorial for Emmet.vim ====== ===== Expand an Abbreviation ===== Type the abbreviation as ’div\>p\#foo$\*3\>a’ and type ‘\,’.

===== Wrap with an Abbreviation ===== Write as below. test1 test2 test3 Then do visual select(line wise) and type ‘\,’. Once you get to the ‘Tag:’ prompt, type ’ul\>li\*’. If you type a tag, such as ‘blockquote’, then you’ll see the following:
test1 test2 test3
===== Balance a Tag Inward ===== type ‘\d’ in insert mode. ===== Balance a Tag Outward ===== type ‘\D’ in insert mode. ===== Go to the Next Edit Point ===== type ‘\n’ in insert mode. ===== Go to the Previous Edit Point ===== type ‘\N’ in insert mode. ===== Update an ’s Size ===== Move cursor to the img tag. Type ‘\i’ on img tag ===== Merge Lines ===== select the lines, which include ‘\
and then type ‘\m’
===== Remove a Tag ===== Move cursor in block Type ‘\k’ in insert mode.
And type ‘\k’ in there again. _empty_ ===== Split/Join Tag ===== Move the cursor inside block
cursor is here
Type ‘\j’ in insert mode.
And then type ‘\j’ in there again.
===== Toggle Comment ===== Move cursor inside the block
hello world
Type ‘\/’ in insert mode. Type ‘\/’ in there again.
hello world
===== Make an anchor from a URL ===== Move cursor to URL http://www.google.com/ Type ‘\a’ Google ===== Make some quoted text from a URL ===== Move cursor to the URL http://github.com/ Type ‘\A’
Secure source code hosting and collaborative development - GitHub

How does it work? Get up and running in seconds by forking a project, pushing an existing repository...

http://github.com/
===== Installing emmet.vim for the language you are using: ===== # cd ~/.vim # unzip emmet-vim.zip Or if you are using pathogen.vim: # cd ~/.vim/bundle # or make directory # unzip /path/to/emmet-vim.zip Or if you get the sources from the repository: # cd ~/.vim/bundle # or make directory # git clone http://github.com/mattn/emmet-vim.git ===== Enable emmet.vim for the language you using. ===== You can customize the behavior of the languages you are using. # cat >> ~/.vimrc let g:user_emmet_settings = { \ 'php' : { \ 'extends' : 'html', \ 'filters' : 'c', \ }, \ 'xml' : { \ 'extends' : 'html', \ }, \ 'haml' : { \ 'extends' : 'html', \ }, \}