Switch Python Version for Vim & Syntastic

后端 未结 8 1129
忘了有多久
忘了有多久 2020-12-24 05:15

Is it possible to change the python version used by syntastic for syntax checking?

As the Issue https://github.com/scrooloose/syntastic/issues/385 indicates I could

8条回答
  •  情歌与酒
    2020-12-24 05:41

    Easiest solution:

     let g:syntastic_python_python_exec = 'python3'
     let g:syntastic_python_checkers = ['python']
    

    This is the first result that appears when searching Google for "Syntastic python3": most answers are too complicated for someone in a hurry. This is the straightforward solution to switch to python3.

提交回复
热议问题