Vim plug-in jedi-vim completion does not work properly

Asked 2 years ago, Updated 2 years ago, 93 views

Prerequisites/What you want to achieve

  • I want jedi-vim's Omni completion to work properly

Problems/Error Messages you are experiencing

  • Introduced jedi-vim using Vundle
  • str. or numpy. and the following message appears.

--Omni complement(^O^N^P) pattern not found

Source Codes Affected

import numpy
numpy.# Error message at this point
set incompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call bundle#begin()

Plugin 'VundleVim/Vundle.vim'

Plugin'airblade/vim-gitgutter'
Plugin'davidhalter/jedi-vim'

call bundle#end()
filetype plugin indent on

Tried

  • vim :help jedi-vim to display the help screen for jedi-vim
  • I deleted Vundle once and tried dein.vim, but I got a similar error

Supplementary Information

  • VIM-Vi IMproved 8.1
  • anaconda3-5.3.0 (managed by pyenv)

I will add any missing information, so please let me know.
Thank you for your cooperation.

Add

I forgot to write it.I'm doing multi-posting.
https://teratail.com/questions/163424

python python3 vim anaconda3

2022-09-30 21:37

1 Answers

You may need to meet some prerequisites for operation, so check them out just in case.

  • Vim compiled with the +python or +python3 flags enabled.
    For example, on Linux, run vim --version | grep python from the command line to see if it contains any of the above. -python is not allowed.

  • Python's jedi library is installed.

    $pip install jedi
    

Vim compiled with the +python or +python3 flags enabled.
For example, on Linux, run vim --version | grep python from the command line to see if it contains any of the above. -python is not allowed.

Python's jedi library is installed.

$pip install jedi

Note:
davidhalter/jedi-vim:Using the jedi autocompletion library for VIM.
Vim Note: Complementing Python Inputs with jedi-vim


2022-09-30 21:37

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.