Black: Plugin installation via Vim plugin managers (Vundle, etc.)

Created on 14 Apr 2018  路  5Comments  路  Source: psf/black

It would be nice to have black vim plugin installed via popular vim package managers e.g. Vundle.

enhancement help wanted

Most helpful comment

You can install it with Vundle like this

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

From the vundle help

The 'rtp' option

Specifies a directory inside the repository (relative path from the root of
the repository) where the vim plugin resides. It determines the path that will
be added to the |runtimepath|.

For example:

Plugin 'git_URI', {'rtp': 'some/subdir/'}

This can be used with git repositories that put the vim plugin inside a
subdirectory.

All 5 comments

I don't use any and I don't know how to do that. If you submitted a PR for that, I'd happily accept it.

I've not done this before, but I'd be really interested to give it a go!

As long as it's a valid repo structure it will be installed. Example http://learnvimscriptthehardway.stevelosh.com/chapters/43.html

so to make it work, you should split it into a new repository.

Yeah, let's make a separate repo.

You can install it with Vundle like this

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

From the vundle help

The 'rtp' option

Specifies a directory inside the repository (relative path from the root of
the repository) where the vim plugin resides. It determines the path that will
be added to the |runtimepath|.

For example:

Plugin 'git_URI', {'rtp': 'some/subdir/'}

This can be used with git repositories that put the vim plugin inside a
subdirectory.

Was this page helpful?
0 / 5 - 0 ratings