[英]How to fix syntax highlighting with ES6/ES2015 string interpolation?
You can install this package: http://www.vim.org/scripts/script.php?script_id=5230你可以安装这个包: http : //www.vim.org/scripts/script.php?script_id=5230
There is a description on the page to help you install it.页面上有说明可以帮助您安装它。
This is their github repo: https://github.com/garbas/vim-snipmate这是他们的 github 仓库: https : //github.com/garbas/vim-snipmate
This worked for me.这对我有用。
Install Plugin 'mxw/vim-jsx'
安装Plugin 'mxw/vim-jsx'
Then put this in your .vimrc
然后把它放在你的.vimrc
" This allows jsx syntax highlighting in js files
let g:jsx_ext_required = 0
If you use vundle, just put this Plugin 'mxw/vim-jsx'
and the above lines in your .vimrc
and run :PluginInstall
如果您使用 vundle,只需将此Plugin 'mxw/vim-jsx'
和上述行放在您的.vimrc
并运行:PluginInstall
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.