Skip to content

adriaanzon/vim-emmet-ultisnips

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Emmet for Vim, implemented with UltiSnips.

Installation

Requires Python 3.4 or higher (:python3 print(sys.version)) and UltiSnips.

Install via e.g. vim-plug:

Plug 'adriaanzon/vim-emmet-ultisnips'
Plug 'SirVer/ultisnips'

Configuration

The snippets are enabled by default in HTML files. To use it in Vue files for example, put the following in your UltiSnips/vue.snippets:

extends html

Supported syntax

name example
element div, p
class .foo, .foo.bar
id #foobar
child ul>li
sibling div+p
repeat div*3
text a{Click me}

Alternatives

Both of these didn't work the way I wanted. I wanted it to simply work by writing an Emmet abbreviation and pressing <Tab>, while also still having <Tab> mapped to trigger a snippet.