• Stars
    star
    271
  • Rank 151,717 (Top 3 %)
  • Language
    Vim Script
  • License
    MIT License
  • Created over 11 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The Vim RuboCop plugin runs RuboCop and displays the results in Vim

Vim RuboCop

The Vim RuboCop plugin runs RuboCop and displays the results in Vim.

Requirements

Please note that the current version of the Vim RuboCop plugin requires RuboCop 0.12.0 or later.

Installation

Obtain a copy of this plugin and place rubocop.vim in your Vim plugin directory.

Usage

You can use the :RuboCop command to run RuboCop and display the results.

You can also use the :RuboCop command together with options. For example, :RuboCop -l, :RuboCop -a and so on.

Configuration File

To run with the specified configuration file, add the following line to your .vimrc file:

let g:vimrubocop_config = '/path/to/rubocop.yml'

Keyboard Shortcuts

Credit for Shortcuts: Ack.vim

In the quickfix window, you can use:

o    to open (same as enter)
go   to preview file (open but maintain focus on ack.vim results)
t    to open in new tab
T    to open in new tab silently
h    to open in horizontal split
H    to open in horizontal split silently
v    to open in vertical split
gv   to open in vertical split silently
q    to close the quickfix window

Additionally, the plugin registers <Leader>ru in normal mode for triggering it easily. You can disable these default mappings by setting g:vimrubocop_keymap in your .vimrc file, and then remap them differently.

For instance, to trigger RuboCop by pressing <Leader>r you can put the following in your .vimrc:

let g:vimrubocop_keymap = 0
nmap <Leader>r :RuboCop<CR>

License

The Vim RuboCop plugin is open-sourced software licensed under the MIT license.

More Repositories

1

webloyer

Webloyer is a web UI for managing Deployer deployments
PHP
217
star
2

l4-dav

The WebDAV client for PHP
PHP
9
star
3

webloyer-docker

Docker image for Webloyer
Shell
5
star
4

phpinfocmp

PhpinfoComparator is compare two phpinfo() files.
HTML
4
star
5

google-plus-api-demo

Google+ APIのデモアプリ
Ruby
4
star
6

php-specification

This is a library to help implement the specification pattern in PHP. It provides on-memory validation, on-memory and ORM selection, and specification composite.
PHP
3
star
7

capistrano-recipe-for-codeigniter

Ruby
2
star
8

stand-ci

A continuous integration tool designed for Laravel 5 application
PHP
2
star
9

socket.io-chat

JavaScript
2
star
10

eloquent-serialized-lob

Eloquent Serialized LOB is a trait for Laravel Eloquent models that allows Serialized LOB pattern
PHP
1
star
11

Laravel.Aop

Laravel.Aop integrates Ray.Aop with Laravel.
PHP
1
star
12

backbone-with-rails3-demo

JavaScript
1
star
13

backbone-sample

backbone.jsのサンプルアプリ
JavaScript
1
star
14

laravel-query-log-tracker

The Laravel package which log all executed queries
PHP
1
star
15

okuribito-laravel

OkuribitoLaravel can monitor view loading and record it. This helps to remove unused view files
PHP
1
star
16

ore-no-vimrc

俺のvimrc。This repository merged into https://github.com/ngmy/dotfiles
HTML
1
star
17

wt-settings

ngmy's Windows Terminal settings
Shell
1
star
18

cached-object

A caching scheme for an object for Laravel 4, inspired by Enterprise Rails
PHP
1
star
19

devenv

ngmy's development environment
Shell
1
star
20

laravel-cqrs

1
star
21

dotfiles

ngmy's dot files
Vim Script
1
star
22

laradockctl

laradockctl is a command wrapper for Laradock
Shell
1
star
23

homedir

ngmy's home directory
Shell
1
star
24

mac-terminal-settings

ngmy's Mac Terminal settings
1
star
25

laravel-mysql-dumper

The Laravel package that provides the Artisan command to execute mysqldump
PHP
1
star
26

php-typed-array

The typed array for PHP
PHP
1
star