Skip to content
Luke Fender edited this page Oct 22, 2015 · 3 revisions
  • add to .vimrc
    • rubocop plugin
    • let g:vimrubocop_config = ~/source/style-guides/ruby/.rubocop.yml
  • mappings
    • nmap <Leader>r :echo @%\|RuboCop -a <CR> " autofix current file
    • use <Leader>ru to lint the current file

see :RuboCop -h for usage

Clone this wiki locally