Git Product home page Git Product logo

vim-javascript's Introduction

vim-javascript v0.9.0

JavaScript bundle for vim, this bundle provides syntax and indent plugins.

A Quick Note on Regexes

Vim 7.4 was released recently, and unfortunately broke how this plugin handles regexes. There was no real easy way for us to fix this unless we completely rewrote how regexes work.

Good News: There was a recent update to Vim 7.4 that fixes this issue.

Make sure you are at least using Vim 7.4, with patches 1-7.

If you are stuck on an older version of Vim 7.4 with no way to update, then simply perform the following commands to fix your current buffer:

:set regexpengine=1
:syntax enable

Installation

Install with Vundle

Add to vimrc:

Bundle "pangloss/vim-javascript"

And install it:

:so ~/.vimrc
:BundleInstall

Install with pathogen

  cd ~/.vim/bundle
  git clone https://github.com/pangloss/vim-javascript.git

Configuration

The following variables control certain syntax highlighting features. You can add them to your .vimrc to enable/disable their features.

javascript_enable_domhtmlcss

Enables HTML/CSS syntax highlighting in your JavaScript file.

Default Value: 0

b:javascript_fold

Enables JavaScript code folding.

Default Value: 1

g:javascript_conceal

Enables concealing characters. For example, function is replaced with ฦ’

Default Value: 0

javascript_ignore_javaScriptdoc

Disables JSDoc syntax highlighting

Default Value: 0

Contributing

This project uses the git flow model for development. There's a handy git module for git flow. If you'd like to be added as a contributor, the price of admission is 1 pull request. Please follow the general code style guides (read the code) and in your pull request explain the reason for the proposed change and how it is valuable.

Bug report

Report a bug on GitHub Issues.

vim-javascript's People

Contributors

3rd-eden avatar aeosynth avatar amadeus avatar brianarn avatar brutasse avatar bwiggs avatar davidchambers avatar drslump avatar eddiemonge avatar goatslacker avatar iammerrick avatar indygreg avatar int3 avatar kevnchu avatar kwellman avatar lepture avatar mando avatar mwcz avatar noprompt avatar tanob avatar tpope avatar ukstv avatar utyf avatar vitalk avatar vxsx avatar wavded avatar

Watchers

 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.