crusoexia / vim-javascript-lib

companion of vim-javascript, provide syntax highlight of javascript libraries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vim-javascript-lib

This is a companion plugin of vim-javascript, which provide the keyword highlight of famous js libraries and start to support native methods. This plugin will not try to highlight every method of the libs, it only highlight most frequent used global variables, such as _, $, Backbone, because sometimes the more you see the less you get, we just care the most important stuff here.

Install

Install with Vundle

Plugin 'crusoexia/vim-javascript-lib'

Dependency

This plugin is designed to work with vim-javascript, so vim-javascript is hard dependency, you must install it to make the plugin works.

JS native highlight

  • Array methods

Libraries

Right now the list is:

  • underscore / Lo-Dash
  • jQuery / Zepto
  • Backbone
  • angular
  • Handlebars / Mustache
  • mocha
  • AMD
  • Q

HTML

This plugin will also fix the html attribute highlight issue of original vim.

Screenshots

Before:

before

After:

after

About

companion of vim-javascript, provide syntax highlight of javascript libraries

License:MIT License


Languages

Language:Vim Script 100.0%