]> 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:

Call 'cclose' after 'grep' in case quickfix is open on autocmd QuickFixCmdPost
[etc/vim.git] / ftplugin / python_flake8.vim
index c4655bce02a97f521449949a7f127805e1b80045..dd062d910b77876c2791b3b987d89d46c2aa66c5 100644 (file)
@@ -45,7 +45,7 @@ endfunction
 " 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