Emmet for Vim, implemented with UltiSnips.
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'
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
name | example |
---|---|
element | div , p |
class | .foo , .foo.bar |
id | #foobar |
child | ul>li |
sibling | div+p |
repeat | div*3 |
text | a{Click me} |
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.