All Projects → skammer → Vim Ruby Complexity

skammer / Vim Ruby Complexity

Ruby cyclomatic complexity VIM plugin

Labels

Projects that are alternatives of or similar to Vim Ruby Complexity

Markmywords
Arbitrary bookmarks for your files and Vim docs
Stars: ✭ 19 (-20.83%)
Mutual labels:  viml
Ag.vim
Use ag, the_silver_searcher (better than ack, which is better than grep)
Stars: ✭ 23 (-4.17%)
Mutual labels:  viml
Vim Macroeditor
Edit Vim macros with ease!
Stars: ✭ 24 (+0%)
Mutual labels:  viml
Vim lib
Stars: ✭ 22 (-8.33%)
Mutual labels:  viml
Insertlessly
Waste no more time entering insert mode just to insert enters!
Stars: ✭ 22 (-8.33%)
Mutual labels:  viml
Vim Htmlbars Inline Syntax
Highlight hbs tagged template literals
Stars: ✭ 24 (+0%)
Mutual labels:  viml
Dotfiles
My dot files
Stars: ✭ 18 (-25%)
Mutual labels:  viml
Dotfiles
Config's and scripts
Stars: ✭ 24 (+0%)
Mutual labels:  viml
Cheatsheets
personal cheatsheets on various technologies
Stars: ✭ 23 (-4.17%)
Mutual labels:  viml
Unite Redpen.vim
A unite.vim integration of redpen for automatic proof reading
Stars: ✭ 24 (+0%)
Mutual labels:  viml
Learnviml
A suggested path for learning Vim's scripting language, VimL
Stars: ✭ 22 (-8.33%)
Mutual labels:  viml
Scala Vim Support
Unofficial mirror of Scala Vim support - With a few fixes added.
Stars: ✭ 22 (-8.33%)
Mutual labels:  viml
Vim Expand Region
Vim plugin that allows you to visually select increasingly larger regions of text using the same key combination.
Stars: ✭ 924 (+3750%)
Mutual labels:  viml
Vim Session
Extended session management for Vim (:mksession on steroids)
Stars: ✭ 907 (+3679.17%)
Mutual labels:  viml
Unite Grep Vcs
An unite source package for git grep and hg grep
Stars: ✭ 24 (+0%)
Mutual labels:  viml
Funcoo.vim
Functional Object Oriented VimL
Stars: ✭ 18 (-25%)
Mutual labels:  viml
Rvm.vim
This functionality has been rolled into tpope's vim-rvm
Stars: ✭ 23 (-4.17%)
Mutual labels:  viml
Vim Behat
Behat plugin for vim (adaptation of vim-cucumber)
Stars: ✭ 24 (+0%)
Mutual labels:  viml
Vim Portal
Hello and, again, this is the Portal Gun for Vim.
Stars: ✭ 24 (+0%)
Mutual labels:  viml
Init.vim
My settings for neovim
Stars: ✭ 24 (+0%)
Mutual labels:  viml

Ruby Cyclomatic Complexity Plugin

rubycomplexity.vim plugin computes how complex your methods are using Flog magic and neatly displays it to you in the signs column next to your code.

Screen shot

Requirements

  • ruby
  • flog rubygem
  • vim 7.2+, compiled with:
    • +ruby
    • +signs

Configuration

g:rubycomplexity_enable_at_startup

Turn automatic plugin loading on and off. Set it to 0 if you do not want to call ShowComplexity() on every read or write of *.rb file

Colors:

g:rubycomplexity_color_low

Sets color for low compelxity signs. Default value is "#004400".

g:rubycomplexity_color_medium

Sets color for medium complexity signs. Default value is "#bbbb00".

g:rubycomplexity_color_high

Sets color for high complexity signs. Default value is "#ff2222".

Ranges:

g:rubycomplexity_medium_limit

Sets medium complexity limit. Default value is 7.

g:rubycomplexity_high_limit

Sets high complexity limit. Default value is 14.

0------7------14-------max
       |       \
       |        -g:rubycomplexity_high_limit
       \
        -g:rubycomplexity_medium_limit

Known bugs

  • flog fails on blocks and multiline string
  • signs do not update properly in some cases

Links

@garybernhardt's pycomplexity.vim.

@topfunky's rubycomplexity.el

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].