Giter VIP home page Giter VIP logo

vim-javascript's Introduction

vim-javascript

JavaScript bundle for vim, this bundle provides syntax highlighting and improved indentation.

Installation

Install with Vundle

Add to vimrc:

Plugin 'pangloss/vim-javascript'

And install it:

:so ~/.vimrc
:PluginInstall

Install with vim-plug

Add to vimrc:

Plug 'pangloss/vim-javascript'

And install it:

:so ~/.vimrc
:PlugInstall

Install with pathogen

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

Configuration Variables

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


let g:javascript_plugin_jsdoc = 1

Enables syntax highlighting for JSDocs.

Default Value: 0


let g:javascript_plugin_ngdoc = 1

Enables some additional syntax highlighting for NGDocs. Requires JSDoc plugin to be enabled as well.

Default Value: 0


let g:javascript_plugin_flow = 1

Enables syntax highlighting for Flow.

Default Value: 0


set foldmethod=syntax

Enables code folding based on our syntax file.

Please note this can have a dramatic effect on performance and because it is a global vim option, we do not set it ourselves.

Concealing Characters

You can customize concealing characters by defining one or more of the following variables:

let g:javascript_conceal_function       = "ƒ"
let g:javascript_conceal_null           = "ø"
let g:javascript_conceal_this           = "@"
let g:javascript_conceal_return         = "⇚"
let g:javascript_conceal_undefined      = "¿"
let g:javascript_conceal_NaN            = "ℕ"
let g:javascript_conceal_prototype      = "¶"
let g:javascript_conceal_static         = "•"
let g:javascript_conceal_super          = "Ω"
let g:javascript_conceal_arrow_function = "⇒"

Indentation Specific

  • :h cino-:

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 Reports

Report a bug on GitHub Issues.

License

Distributed under the same terms as Vim itself. See :help license.

vim-javascript's People

Contributors

amadeus avatar bounceme avatar goatslacker avatar davidchambers avatar qstrahl avatar int3 avatar jfelchner avatar dmitrivereshchagin avatar mwcz avatar wavded avatar jeltef avatar utyf avatar crusoexia avatar wchargin avatar vitalk avatar ukstv avatar iammerrick avatar noprompt avatar lencioni avatar utix avatar tanob avatar jridgewell avatar kwellman avatar mando avatar pierreozoux avatar riobard avatar romgrk avatar ryanoasis avatar simono avatar tpope avatar

Watchers

Benoît avatar James Cloos 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.