All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
2 " Python filetype plugin for running flake8
3 " Language: Python (ft=python)
4 " Maintainer: Vincent Driessen <vincent@3rdcloud.com>
5 " Version: Vim 7 (may work with lower Vim versions, but not tested)
6 " URL: http://github.com/nvie/vim-flake8
8 " Only do this when not done yet for this buffer
9 if exists("b:loaded_flake8_ftplugin")
12 let b:loaded_flake8_ftplugin=1
17 "" Highlight groups for errors
19 highlight Flake8_Error
20 \ ctermbg=DarkRed ctermfg=Red cterm=bold
21 \ guibg=DarkRed guifg=Red gui=bold
23 highlight Flake8_Warning
24 \ ctermbg=Yellow ctermfg=DarkYellow cterm=bold
25 \ guibg=Yellow guifg=DarkYellow gui=bold
27 highlight Flake8_PyFlake
28 \ ctermbg=DarkBlue ctermfg=Blue cterm=bold
29 \ guibg=DarkBlue guifg=Blue gui=bold
30 " McCabe complexity warnings
31 highlight Flake8_Complexity
32 \ ctermbg=DarkBlue ctermfg=Blue cterm=bold
33 \ guibg=DarkBlue guifg=Blue gui=bold
35 highlight Flake8_Naming
36 \ ctermbg=DarkBlue ctermfg=Blue cterm=bold
37 \ guibg=DarkBlue guifg=Blue gui=bold
39 " to not break with old versions
44 " Add mappings, unless the user didn't want this.
45 " The default mapping is registered under to <F7> by default, unless the user
46 " remapped it already (or a mapping exists already for <F7>)
47 if !exists("no_plugin_maps") && !exists("no_flake8_maps")
48 if !hasmapto('Flake8(')
49 noremap <buffer> <F7> :call flake8#Flake8()<CR>