Runs the rubocop style checker on the current file or files in the current directory on down. Rubocop config can specify which files to analyse.
-
Install pathogen if you're not using it already.
-
Clone this repository into your bundle directory:
cd ~/.vim/bundle/ git clone https://github.com/lad/vim-rubocop.git ./vim-rubocop
-
If you want to use a specific config file set g:rubocop_config
let g:rubocop_config = "~/git/dev/roux/etc/rubocop.yml"
-
Setup whatever shortcuts you want to invoke RubocopThis (current file) or RubocopAll.
nnoremap <leader>R :RubocopThis<CR> nnoremap <leader>T :RubocopAll<CR>