mxw / vim-jsx

React JSX syntax highlighting and indenting for vim.
1.59k stars 95 forks source link

Setting syntax in vim #21

Closed ceane closed 10 years ago

ceane commented 10 years ago

Is there a way to set the syntax in a blank file, for example using

:set syntax=jsx

to turn on highlighting? Or is this planned in the future?

mxw commented 10 years ago

You can get this now if g:jsx_ext_required is set to something truthy (which is the case by default), and you are creating a file with the .jsx extension.