为什么我每次都需要 运行 PluginInstall 才能使用 Black inside vim?

Why do I need to run PluginInstall every time to use Black inside vim?

我刚刚安装了 Black 来自:

Plugin 'ambv/black', {'rtp': 'vim'}

使用 Vundle。

如果没有 运行 PluginInstall,我无法使用 Black 命令。

这是一个错误吗?

插件是here

我的 .vimrc 看起来像这样:

set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'ambv/black', {'rtp': 'vim'}
call vundle#end() 

阅读 Vundle documentation 后,您似乎在 .vimrc

中遗漏了一些必需的行

但我认为主要问题是您正在更改黑色的 rtp,删除它适用于以下 .vimrc

set nocompatible             "required
filetype off                 "required

set rtp+=~/.vim/bundle/Vundle.vim

call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'ambv/black'
call vundle#end()            " required

filetype plugin indent on    " required

对于 运行 遇到此问题(包括使用其他插件)的任何人,请检查您的拼写。如果 github username/repository 对包含拼写错误,则 github 将要求输入密码。