You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support new syntax, ex: async, arrow function: =>.
For ES.Next features such as decorator, binding operator. Please install es.next.syntax.vim.
Differences from jelera/vim-javascript-syntax
I start a new project instead of sending PR to jelera is because: jelera/vim-javascript-syntax is not so active.
And I want to do lots of changes, including ES6 and other not confirmed standard support.
Also, one of my goals is to produce 100% correct syntax.
But it hurt performance, so I prefer to create a new one instead of merging back.
Installation
Recommend use pathogen or Vundle. Vundle:
Plugin 'othree/yajs.vim'
Performance Issue
yajs.vim is not good on performance. If you are using a slow computer. You might feel lag while moving the cursor. You can try disable cursorline and colorcolumn, or reduce the number of synmaxcol. Another possible solution is change to neovim
If you still want cursor line highlight, some terminal has their built-in support. Ex: iTerm2, Edit Profile -> Colors -> Cursor Colors.