Closed zhuweiyou closed 1 year ago
If you are using vim8 under windows, then you should install python and make sure python can be called from vim.
macOS
I installed python and python3
You should check it by :echo has('python')
and :echo has('python3')
Please execute :echo has('python')
and :echo has('python3')
in your Vim.
And what is your Vim version?
The check is here. I think your Vim is too old or if_python and if_python3 are not enabled.
https://github.com/maralla/completor.vim/blob/master/plugin/completor.vim#L12
vim 8.0.1400
:echo has('python') // 1
:echo has('python3') // 0
Please execute :echo Check()
function! Check()
return ((has('python') || has('python3'))
\ && has('job') && has('timers') && has('lambda')) || has('nvim')
endfunction
:echo (has('python') || has('python3')) && has('job') && has('timers') && has('lambda')) || has('nvim')
# 1
I don't know why it does not work...
You can add :echomsg s:has_features()
in L15.
https://github.com/maralla/completor.vim/blob/master/plugin/completor.vim#L15
Open some files will report this warning, not all
What is the output of vim --version
?
me too . How can I fix it?
yeah, i have the same problem
@indrabinridwan Please post the result of vim --version
here.
@indrabinridwan if you input vim --version |grep python
and result is -python -python3
, then You should turn on VIM to support python. You will find that the problem has been solved. How to turn on VIM to support pythom?, see vim-python
firstly, confirm your vim support python: vim --version | grep python, must +python and +python3 secondly, confirm python is available in vim: :echo has("python"), :echo has("python3"), must return 1 thirdly, you may be to confirm jedi is installed by pip or pip3, and make sure it be consistent with your available python in vim
apt install vim-python
How to fixed it ?