The Vim RuboCop plugin runs RuboCop and displays the results in Vim.
- Obtain a copy of this plugin and place
rubocop.vim
in your Vim plugin.
-
You can use the
:RuboCop
command to run RuboCop and display the results. -
To run with specified config file add this line to your
.vimrc
file:let vimrubocop_config='/path/to/rubocop.yml'