Git Product home page Git Product logo

vim-hyperstyle's Introduction

vim-hyperstyle

Type faster by shorthand that will auto-expand as you type. Supports less, sass, scss, stylus, and plain CSS.

Status


Expansions

Expansions intelligently happen as you type. Unlike emmet, there are no hotkeys required—expansion will happen as you type whenever they make sense.

  • Properties will be auto-completed:
    m:margin:

  • You can put numeric next to property shortcuts:
    z1⏎z-index: 1;

  • Values will be auto-completed:
    float:lfloat: left

  • Default units will be added:
    border-radius: 4⏎border-radius: 4px;

  • Shortcuts for common statements are available:
    fl⏎float: left;

  • Semicolons are inserted automatically so you can write CSS in one go:
    dib m0a

  • Semicolons are omitted for .styl and .sass

  • ...and lots more goodies


Examples

Shortcut Expansion
dib display: inline-block;
m0 margin: 0;
m0a margin: 0 auto;
m-15 margin: -15px;
m:auto margin: auto;
fle 1 auto flex: 1 auto;
float left float: left;

View full reference →


Installation

Using vim-plug:

Plug 'rstacruz/vim-hyperstyle'

Python support is required. For Neovim:

:help nvim-python

For OSX/Homebrew: (info)

brew install macvim --with-cscope --with-lua --override-system-vim \
  --with-luajit --with-python3 --with-python

Caveats

  • Stylus is assumed to be in indented syntax (no braces), and the use of : is enforced.

Thanks

vim-hyperstyle © 2015+, Rico Sta. Cruz. Released under the MIT License.
Authored and maintained by Rico Sta. Cruz with help from contributors (list).

ricostacruz.com  ·  GitHub @rstacruz  ·  Twitter @rstacruz

vim-hyperstyle's People

Contributors

rstacruz avatar

Watchers

James Cloos avatar Karthikeyan avatar  avatar

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.