0

我正在尝试初始化 jedi-vim。但我收到“不是编辑器命令:插件'davidhalter/jedi-vim'”错误。我试过 Plug , plug , Plugin , plugin 但仍然遇到同样的错误。jedi-vim 存储库的 README 说:

Add the following line in your ~/.vimrc    
Plugin 'davidhalter/jedi-vim'

这是 .vimrc 文件:

Plugin 'davidhalter/jedi-vim'
let g:jedi#auto_initialization = 0
let g:jedi#auto_vim_configuration = 0
let g:jedi#use_tabs_not_buffers = 1
let g:jedi#use_splits_not_buffers = "left"
let g:jedi#popup_on_dot = 1
let g:jedi#popup_select_first = 0
let g:jedi#show_call_signatures = "1"
let g:jedi#goto_command = "<leader>d"
let g:jedi#goto_assignments_command = "<leader>g"
let g:jedi#goto_stubs_command = "<leader>s"
let g:jedi#goto_definitions_command = ""
let g:jedi#documentation_command = "K"
let g:jedi#usages_command = "<leader>n"
let g:jedi#completions_command = "<C-Space>"
let g:jedi#rename_command = "<leader>r"
let g:jedi#environment_path = "/usr/bin/python3.9"
let g:jedi#environment_path = "venv"
let g:jedi#completions_enabled = 0

如果你认为你还没有下载 jedi-vim,我已经下载了 jedi-vim。
我该如何解决这个问题。
我尝试了病原体。这是 .vimrc

xecute pathogen#infect()
syntax on
filetype plugin indent on


let g:jedi#auto_initialization = 1

我得到了 Omni 补全 (^O^N^P) Pattern not found 错误。我在堆栈溢出中看到了一个问题,但我无法理解

4

1 回答 1

1

我正在尝试初始化 jedi-vim。但我收到“不是编辑器命令:插件'davidhalter/jedi-vim'”错误。我尝试了 Plug , plug , Plugin , plugin 但仍然遇到同样的错误

Plugplug并且Plugin可能是您最有可能不使用的不同插件管理器的命令。

我可能会建议您尝试使用vim-plug,因为我发现对于初学者来说设置起来相对简单。从 vim-plug 的自述文件中,复制/粘贴并运行适用于您的操作系统和 vim 版本的相关 shell 命令(如果您使用的是 Linux 或 Mac,它的curl命令列在下面Unix),并将以下内容添加到您的 .vimrc

" Specify a directory for plugins
" - For Neovim: stdpath('data') . '/plugged'
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')

Plug 'davidhalter/jedi-vim'

" Initialize plugin system
call plug#end()

为您的 .vimrc 提供资源(或关闭并再次打开 vim)并:PlugInstall从 vim 命令模式运行。

于 2021-01-06T16:32:38.917 回答