• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

jelera/vim-javascript-syntax: Enhanced javascript syntax file for Vim

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

jelera/vim-javascript-syntax

开源软件地址:

https://github.com/jelera/vim-javascript-syntax

开源编程语言:

Vim Script 100.0%

开源软件介绍:

Enhanced JavaScript Syntax for Vim

Credits

  • Zhao Yi, Claudio Fleiner, Scott Shattuck (This file is based on their hard work)
  • gumnos (From the #vim IRC Channel in Freenode) (Who helped me figured out the crazy Vim Regexes)

Description

This file is a fork of this file and the stock one

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.).
  • Separate highlight of the arguments. Thanks to Billychan.

Rationale

While there are already a few syntax files in the wild (some even forks from this project), the goal is to have a syntax file that has current keywords for modern ES/JS development and to be fairly lean and quick on loading.

Screenshots

This is the stock Javascript syntax file

Solarized Light

Stock Vim JavaScript syntax file

This is with the Enhanced Syntax file Enhanced JavaScript Vim syntax

More screenshots here.

Hybrid

Stock Vim JavaScript syntax file

This is with the Enhanced Syntax file Enhanced JavaScript Vim syntax

Installation

  • Using Vim-Plug (Which I recommend), add this line to your .vimrc
Plug 'jelera/vim-javascript-syntax'
  • Using Vundle, add this line to your .vimrc
Plugin 'jelera/vim-javascript-syntax'
  • Using Pathogen, run this command in your shell
git clone https://github.com/jelera/vim-javascript-syntax.git ~/.vim/bundle/vim-javascript-syntax

Suggested Companion Plugins

  • Indentation The recommended way is to use Prettier and ALE.

It can be achieved with Javascript-Indent by Preston Koprivica. On my testing, it has proved to be the most capable and also indents HTML and JS inside HTML. The project is unmaintained for now, but you could fork it and improve upon it.

Contributions

While all contributions are always welcome, make sure your commit message follow this convention.

License

The same as Vim




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap