Code Monkey home page Code Monkey logo

vim-javascript-syntax's Introduction

Enhanced JavaScript Syntax for Vim

Credits

  • Zhao Yi, Claudio Fleiner, Scott Shattuck (This file is based on their hard work)
  • gumnos (From the #vim IRC Channel in Freenode) (Who helped me figured out the crazy Vim Regexes)

Description

This file is a fork of this file and the stock one

This version of this file features the following text highlights:

  • Parenthesis, curly and regular brackets.
  • The semicolon or comma at the end of line.
  • Browser, DOM and "Ajax" keywords like objects, methods, properties and others.
  • Operation, comparison and logical symbols (=,==,===,!=,etc.).
  • Separate highlight of the arguments. Thanks to Billychan.

This is the stock Javascript syntax file

Solarized Light

Stock Vim JavaScript syntax file

This is with the Enhanced Syntax file Enhanced JavaScript Vim syntax

Hybrid

Stock Vim JavaScript syntax file

This is with the Enhanced Syntax file Enhanced JavaScript Vim syntax

Installation

  • Using NeoBundle (Which I recommend), add this line to your .vimrc
NeoBundleLazy 'jelera/vim-javascript-syntax', {'autoload':{'filetypes':['javascript']}}
  • Using Vundle, add this line to your .vimrc
Plugin 'jelera/vim-javascript-syntax'
  • Using Pathogen, run this command in your shell
git clone https://github.com/jelera/vim-javascript-syntax.git ~/.vim/bundle/vim-javascript-syntax

Suggested Companion Plugins

  • Indentation, can be achieved with Javascript-Indent by Preston Koprivica. On my testing, it has proved to be the most capable and also indents HTML and JS inside HTML. The project is unmaintained for now, but you could fork it and improve upon it.
  • Autocompletion by Tern for Vim
  • Popular third-party libraries support like jQuery, YUI, Prototype, by javascript-libraries-syntax

Contributions

This project follows the Git-flow methodology, this will keep the master branch clean for new stable releases. Also the version numbering convention will be this one

More about Git-flow at:

For new contributors

Follow this steps

  • Clone this repository.
  • Using the command line, run git flow init -d.
  • Checkout the develop branch.
  • For new features: Create a new feature branch using git-flow.
  • For bugfixes: Commit in the develop branch.
  • Bump the date and version number on the syntax file.
  • When done, don't forget to push the develop branch.
  • Submit a pull request.

While all contributions are always welcome, make sure your commit message follow this convention

License

The same as Vim

vim-javascript-syntax's People

Contributors

averted avatar bgrohman avatar bigjason avatar billychan avatar bluekeys avatar boba1l0s2k9 avatar bvalosek avatar gabesoft avatar hendriklammers avatar jelera avatar jonhoo avatar julienw avatar juneidy avatar larsbs avatar magicdrive avatar mmwtsn avatar ohcibi avatar romainbossart avatar sabakugaara avatar sleepycat avatar tlvince avatar tommcdo avatar wilhelmtell avatar wpf500 avatar

Watchers

 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.