Need help with yats.vim?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

HerringtonDarkholme
541 Stars 56 Forks 850 Commits 54 Opened issues

Description

Yet Another TypeScript Syntax: The most advanced TypeScript Syntax Highlighting in Vim

Services available

!
?

Need anything else?

Contributors list

# 3,094
Vue.js
deoplet...
vanilla...
Vanilla...
467 commits
# 18,580
viml
Perl
Vim
React
228 commits
# 11,190
github-...
Electro...
phantom...
clang-f...
19 commits
# 525,262
viml
JavaScr...
TypeScr...
Shell
14 commits
# 172,778
Neovim
C
test-fr...
pyenv
11 commits
# 26,166
TypeScr...
React
iterm2
syntax-...
6 commits
# 302,298
Neovim
ack
pt
HTML
4 commits
# 400,531
tsx
Lua
lsp
Neovim
4 commits
# 366,350
fluentd
Scala
HTML
Vim
3 commits
# 387,458
XML
Shell
viml
xsd
3 commits
# 272,493
dsl
viml
CSS
HTML
3 commits
# 76,227
workben...
provisi...
viml
GraphQL
3 commits
# 56,839
Clojure
CSS
ligatur...
Shell
2 commits
# 73,628
tailwin...
GraphQL
graphql...
vscode-...
2 commits
# 630,546
JavaScr...
TypeScr...
Shell
viml
2 commits
# 215,144
dsl
seriali...
playfra...
scalajs
2 commits
# 28,380
React
reasonm...
Rust
hashtag...
2 commits
# 124,592
Less
C
api-doc...
viml
1 commit
# 726,779
HTML
TypeScr...
React
Mobile
1 commit
# 278,271
helmet
reactjs
React
viml
1 commit

YATS: Yet Another TypeScript Syntax

Build Status

screenshot

Yet Another TypeScript Syntax file for Vim, adapted from YAJS. Key differences:

  • Exuberant Highlighting. The most elaborate or byzatine syntax highlighting for TypeScript.
  • Bundled with snippets for UltiSnips!
  • Builtin Support for tagbar!
  • Use 'typescript' as group name's prefix, not 'typeScript' nor 'TypeScript'. Works great with SyntaxComplete.
  • Inherit Web API and DOM keywords from YAJS
  • Syntax fold. Fold long code block, semantically!
  • Remove old, unused syntax definitions.

Config

  • let g:yats_host_keyword = 1
    : configure yats to highlight host specific keywords like
    addEventListener
    . Default is 1. Set it 0 to turn off highlighting.
  • Note:

    set re=0
    explicitly in your vimrc. Old regexp engine will incur performance issues for yats and old engine is usually turned on by other plugins.

Credits

  • othree, whose YAJS is the most up-to-date js syntax for Vim
  • Jose Elera, Enhanced Javascript syntax
  • 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)

License

The same as Vim

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.