Can't get “Syntastic” vim plugin to work

前端 未结 2 1489
长情又很酷
长情又很酷 2021-02-12 20:14

I\'ve installed Syntastic plugin in vim. I can\'t get it to work. I\'ve tried :SyntasticEnable but no luck. SyntasticEnable python in my vimrc doesn\'t work either

2条回答
  •  不知归路
    2021-02-12 20:54

    Have you tried to make sure Vim has the right value set for $PATH?

    :echo $PATH
    

    If not, try putting this in your .vimrc:

    let $PATH=substitute(system("echo \$PATH"), "\r\*\n", "", "g")
    

    Then shutdown and restart vim. If it works, you won't have to manually update the plugin's source files to manually include the path to the executables.

    (found this via: https://superuser.com/questions/380535/getting-man-path-through-vim )

提交回复
热议问题