]>
git.madduck.net Git - etc/vim.git/blobdiff - ftplugin/python_flake8.vim
madduck's git repository
Every one of the projects in this repository is available at the canonical
URL git://git.madduck.net/madduck/pub/<projectpath> — see
each project's metadata for the exact URL.
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.
SSH access, as well as push access can be individually
arranged .
If you use my repositories frequently, consider adding the following
snippet to ~/.gitconfig and using the third clone URL listed for each
project:
[url "git://git.madduck.net/madduck/"]
insteadOf = madduck:
"" Highlight groups for errors
" pep8 errors
"" Highlight groups for errors
" pep8 errors
+highlight default Flake8_Error
\ ctermbg=DarkRed ctermfg=Red cterm=bold
\ guibg=DarkRed guifg=Red gui=bold
" pep8 warnings
\ ctermbg=DarkRed ctermfg=Red cterm=bold
\ guibg=DarkRed guifg=Red gui=bold
" pep8 warnings
-highlight Flake8_Warning
+highlight default Flake8_Warning
\ ctermbg=Yellow ctermfg=DarkYellow cterm=bold
\ guibg=Yellow guifg=DarkYellow gui=bold
" PyFlakes codes
\ ctermbg=Yellow ctermfg=DarkYellow cterm=bold
\ guibg=Yellow guifg=DarkYellow gui=bold
" PyFlakes codes
-highlight Flake8_PyFlake
+highlight default Flake8_PyFlake
\ ctermbg=DarkBlue ctermfg=Blue cterm=bold
\ guibg=DarkBlue guifg=Blue gui=bold
" McCabe complexity warnings
\ ctermbg=DarkBlue ctermfg=Blue cterm=bold
\ guibg=DarkBlue guifg=Blue gui=bold
" McCabe complexity warnings
-highlight Flake8_Complexity
+highlight default Flake8_Complexity
\ ctermbg=DarkBlue ctermfg=Blue cterm=bold
\ guibg=DarkBlue guifg=Blue gui=bold
" naming conventions
\ ctermbg=DarkBlue ctermfg=Blue cterm=bold
\ guibg=DarkBlue guifg=Blue gui=bold
" naming conventions
+highlight default Flake8_Naming
\ ctermbg=DarkBlue ctermfg=Blue cterm=bold
\ guibg=DarkBlue guifg=Blue gui=bold
\ ctermbg=DarkBlue ctermfg=Blue cterm=bold
\ guibg=DarkBlue guifg=Blue gui=bold
" The default mapping is registered under to <F7> by default, unless the user
" remapped it already (or a mapping exists already for <F7>)
if !exists("no_plugin_maps") && !exists("no_flake8_maps")
" The default mapping is registered under to <F7> by default, unless the user
" remapped it already (or a mapping exists already for <F7>)
if !exists("no_plugin_maps") && !exists("no_flake8_maps")
- if !hasmapto('Flake8(')
+ if !hasmapto('Flake8(') && !hasmapto('flake8#Flake8(')
noremap <buffer> <F7> :call flake8#Flake8()<CR>
endif
endif
noremap <buffer> <F7> :call flake8#Flake8()<CR>
endif
endif