Home  >  Q&A  >  body text

vim cannot syntax check js files

I don’t know what’s going on, normal syntax checking cannot be performed in the js file

This is the problem that occurs after installing this plug-in

ruanyl/vim-eslint

After I uninstall this plug-in, I can check the grammar normally. Does this require any additional configuration? , I don’t need it according to the documentation on git. Looking at your configuration file, brother, there is no additional configuration.

Already executed npm install

Screenshots that cannot be checked normally

大家讲道理大家讲道理2712 days ago645

reply all(2)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-05-16 16:40:09

    Have you installed the dependencies of vim-eslint?
    Plug 'ruanyl/vim-eslint', {'do': 'npm install'}

    reply
    0
  • 高洛峰

    高洛峰2017-05-16 16:40:09

    In fact, the best check is to run it in the browser and try it.

    reply
    0
  • Cancelreply