GithubHelp home page GithubHelp logo

adriaanzon / vim-emmet-ultisnips Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 2.0 47 KB

Emmet for Vim, implemented with UltiSnips

License: MIT License

Python 84.87% Makefile 3.53% Vim Snippet 10.15% Vim Script 1.45%
emmet snippets ultisnips vim html

vim-emmet-ultisnips's Introduction

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.

vim-emmet-ultisnips's People

Contributors

adriaanzon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vim-emmet-ultisnips's Issues

Improve behavior when unsupported syntax is encountered

Currently it just finishes parsing and cuts of the part of the abbreviation that follows.

The expand_abbreviation function should throw an error if unsupported syntax is found, so we can check for that and not even expand the snippet to begin with.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.