Tutorial for Emmet.vim mattn 1. Expand an Abbreviation Type the abbreviation as 'div>p#foo$*3>a' and type ','. ---------------------

--------------------- 2. 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*'. ---------------------
  • test1
  • test2
  • test3
--------------------- If you type a tag, such as 'blockquote', then you'll see the following: ---------------------
test1 test2 test3
--------------------- 3. Balance a Tag Inward type 'd' in insert mode. 4. Balance a Tag Outward type 'D' in insert mode. 5. Go to the Next Edit Point type 'n' in insert mode. 6. Go to the Previous Edit Point type 'N' in insert mode. 7. Update an ’s Size Move cursor to the img tag. --------------------- --------------------- Type 'i' on img tag --------------------- --------------------- 8. Merge Lines select the lines, which include '
  • ' ---------------------
    --------------------- and then type 'm' ---------------------
    --------------------- 9. Remove a Tag Move cursor in block --------------------- --------------------- Type 'k' in insert mode. ---------------------
    --------------------- And type 'k' in there again. --------------------- --------------------- 10. Split/Join Tag Move the cursor inside block ---------------------
    cursor is here
    --------------------- Type 'j' in insert mode. ---------------------
    --------------------- And then type 'j' in there again. ---------------------
    --------------------- 11. Toggle Comment Move cursor inside the block ---------------------
    hello world
    --------------------- Type '/' in insert mode. --------------------- --------------------- Type '/' in there again. ---------------------
    hello world
    --------------------- 12. Make an anchor from a URL Move cursor to URL --------------------- http://www.google.com/ --------------------- Type 'a' --------------------- Google --------------------- 13. 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/
    --------------------- 14. 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 15. 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', \ }, \} ---------------------