vimvundle

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


I just installed Black from:

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

using Vundle.

I am not able to use the Black command without running PluginInstall.

Is this a bug?

The plugin is here

My .vimrc looks like this:

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

Solution

  • after reading the Vundle documentation it seems you are missing some required lines in your .vimrc

    but I think the main issue is that you are changing the rtp of black, removing that works with the following .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