Giter Site home page Giter Site logo

vim-vue's Introduction

No longer maintained

vim-vue

Vim syntax highlighting for Vue components.

Installation

Install with Vundle

Add this line to your vimrc:

Plugin 'darthmall/vim-vue'

Then reload your vim configuration and run PluginInstall:

:source ~/.vimrc
:PluginInstall

Manual Installation

$ git clone https://github.com/darthmall/vim-vue.git
$ cp vim-vue/ftdetect/vue.vim ~/.vim/ftdetect/
$ cp vim-vue/syntax/vue.vim ~/.vim/syntax

vim-vue's People

Contributors

darthmall avatar nickhurst avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vim-vue's Issues

Improvement: Jade

With a bit of modification, you can add Jade syntax hilight.

Original syntax/vue.vim

  9 syntax include @HTML syntax/html.vim
 10 unlet b:current_syntax
 11 syntax region template keepend start=/<template\( lang="[a-zA-Z]\+"\)\?>/ end="</template>" contains=@HTML fold

With Jade support:

  9 syntax include @HTML syntax/html.vim
 10 unlet b:current_syntax
 11 syntax region template keepend start=/<template>/ end="</template>" contains=@HTML fold
 12 
 13 syntax include @JADE syntax/jade.vim
 14 unlet b:current_syntax
 15 syntax region template keepend start=/<template lang="jade">/ end="</template>" contains=@JADE fold

Peace.

Improvement: Sass

Add sass support with the following,

syntax include @sass syntax/sass.vim
unlet b:current_syntax
syntax region sass keepend start=/<style\( \+scoped\)\? lang="[^"]*sass[^"]*"\( \+scoped\)\?>/ end="</style>" contains=@sass fold

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.