sponsor Vim development Vim logo Vim Book Ad

Enhanced Javascript syntax : Improved Highlight for Ajax, DOM and Browser Objects, Methods and Properties

 script karma  Rating 120/54, Downloaded by 5481  Comments, bugs, improvements  Vim wiki

created by
Jose Elera
 
script type
syntax
 
description
This file is a fork of this vimscript#1491 and the stock vim javascript syntax file.

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.).

Screenshots:
http://imgur.com/a/sn8fz

Follow all the changes, also to contribute or report bugs.

https://github.com/jelera/vim-javascript-syntax
 
install details
just copy this file in your ~/.vim/syntax

For NeoBundle (Recommended method)
NeoBundleLazy 'jelera/vim-javascript-syntax', {'autoload':{'filetypes':['javascript']}}


For Pathogen/Vundle users
git clone https://github.com/jelera/vim-javascript-syntax ~/.vim/bundle
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-javascript-syntax-0.8.2.zip 0.8.2 2016-02-24 7.0 Jose Elera Many bugfixes and new features added, see more at the github page
javascript.vim 0.8.0 2013-09-18 7.0 Jose Elera Major cleanup, added keywords, tweaked highlighting
javascript.vim 0.6 2012-02-23 7.0 Jose Elera ADDED:
- Support for folding
MODIFIED:
- Most of the code is folded for easier navigation and readability
- Highlight is "more" uniform
javascript.vim 0.5 2012-02-08 7.0 Jose Elera Now it highlights parens, brackets. Symbols like =,==,===,!=,<,> ... etc. Added more keywords. The semicolon or comma at the EOL is highlighted too.
javascript.vim 0.4 2012-02-05 7.0 Jose Elera In this release, "customization of colorscheme" is no longer required. All the new highlights introduced with this syntax have HiLinks with preset keywords. Tested with several colorschemes.
ip used for rating: 18.209.230.60

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github