Howdy! Sorry you're having trouble. To expedite your experience,
provide some basics for me:
Operating system:
Ubuntu 16.4
Python version:
python 3.6
Black version:
Use vim-plug install
I can use black in shell command. However when I type :Black in vim, I have encountered "Not an editor command Black". I have used PlugInstall to install and installation was sucessful.
some problem on macos 10.14.5, python3.7 and vim installed with homebrew.
I have this same issue and have not been able to debug it
OS: macOS 10.14.3
Python Version: 3.7
Vim Version: 8.1
Installed using Pathogen
Likewise, I've got:
vim-nox, built with Python 3 support: +python3/dyn)vim-go installed in the ~/.vim/bundle/ directory working fine, so must be a Black incompatibility)I can run black from the command line fine, but the vim command gives error:
E492: Not an editor command: Black
Leaving another comment here as in the README it says:
"Let me know if this requires any changes to work with Vim 8's builtin packadd, or Pathogen, and so on."
I would be happy to help solve this bug, but I don't know what exactly to investigate. Since I'm not sure how long it'll take to get Pathogen support, I've just successfully installed via vim-plug as suggested.
I was running into the same issue described above. Black worked fine from the command line, but did not work in neovim.
running pip install neovim fixed the issue for me. I realize this will likely not address many of the issues people are running into, if they are not using neovim, but hopefully it can help someone
Fixed it for pathogen by putting the .vim file here:~/.vim/bundle/black/plugin/black.vim.
Most helpful comment
some problem on macos 10.14.5, python3.7 and vim installed with homebrew.