I saved the file rubocop.vim in ~/.vim/plugin/
, and when I run :Rubocop
in Vim I get
Configuration file not found: /path/to/rubocop.yml.
I couldn't find the path to rubocop.yml.
I am on MacOS Mojave.
Thank you.
Since Vim8 it is more convenient to use the new "package" feature. This topic has been already covered over here: vi.stackexchange.com/questions/9522/what-is-the-vim8-package-feature-and-how-should-i-use-it
.rubocop.yml
is included in the Rubocop
public repository.
git clone [email protected]:rubocop-hq/rubocop.git