Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Scripts to show cyclomatic complexity of Python code in Vim and Emacs.
Python Emacs Lisp VimL
branch: master

Merge pull request #9 from onjin/master

Added with short descriptions, vim screenshot and vim install/usage
latest commit 1343a2eddd
@garybernhardt authored
Failed to load latest commit information.
grammar Added a missing node to the grammar verification list
pycomplexity.vim include some docs for the new functionality
tests Fixed a bug: sometimes got wrong color when deleting and replacing lines
.gitignore move hgignore to gitignore
CONTRIBUTORS Fixed line with authors
TODO.txt Added TODO
base.vim Add cterm-colors. Terminal users get semantics now, not just XX signs. Separated Python and Vim source, with a script to combine them Only run as script when outside vim (thanks, Peter Prohaska)
linum.el Added emacs integration for the complexity calculation tool.
pycomplexity.el Update documentation to use the new package name. Added missing "" script


Scripts to show cyclomatic complexity of Python code in Vim and Emacs.

Original vim script by Gary Bernhardt. Emacs support added by Ignas Mikalajūnas.

Patches contributed by:

  • Godefroid Chapelle
  • Steve Bedford
  • Chris Clark
  • Peter Prohaska

vim plugin

Vim plugin is in pycomplexity.vim directory vim python complexity

install vim plugin with NeoBundle

If you're using NeoBundle plugin manager you can add this into ~/.vimrc:

NeoBundle 'garybernhardt/pycomplexity', {'rtp': 'pycomplexity.vim/'}
" optional F6 mapping to fire :Complexity command
nnoremap <silent> <F6> :Complexity<CR>
Something went wrong with that request. Please try again.