Skip to content

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

License

Notifications You must be signed in to change notification settings

crusoexia/vim-javascript-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published