vim-emmet-ultisnips

Emmet for Vim, implemented with UltiSnips

MIT License

Stars
10

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.