maralla/completor.vim

python2 only?

Opened this issue · 3 comments

Hi,
currently I am trying to move my vimrc to vim8's, and trying to get rid of YCM. So, in my vundle:

Plugin 'maralla/completor.vim'
Now, this is giving problem like:

  1. with ultisnips: UltiSnips: the Python version from g:UltiSnipsUsePythonVersion (3) is not

  2. with vimf90:

"i.f90" 3L, 43C
Error detected while processing /home/rudra/.vim/bundle/vimf90/ftplugin/fortran_block.vim:
line  103:
E837: This Vim cannot execute :py3 after using :python
E263: Sorry, this command is disabled, the Python library could not be loaded.  

Any help please?

https://github.com/maralla/completor.vim/blob/master/plugin/completor.vim#L12

It must be:

  return (has('python3') || has('python')) &&
        \ (has('job') && has('timers') || has('nvim')) &&
\ has('lambda')

If has('python') is called before has('python3'), the problem is occurred.

You can send the PR instead.