completor.vim icon indicating copy to clipboard operation
completor.vim copied to clipboard

python2 only?

Open rudrab opened this issue 5 years ago • 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?

rudrab avatar Jun 02 '19 16:06 rudrab

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.

Shougo avatar Jun 03 '19 02:06 Shougo

You can send the PR instead.

Shougo avatar Jul 15 '19 03:07 Shougo

#277

ferreum avatar Nov 16 '19 10:11 ferreum