X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/673b1816bc42d5673e8834af6526e733d98be96e..8a573a9806eacf000b03b4bbf37aff4ce06d73a6:/ftplugin/python_flake8.vim diff --git a/ftplugin/python_flake8.vim b/ftplugin/python_flake8.vim index 710abf7..b26d9a1 100644 --- a/ftplugin/python_flake8.vim +++ b/ftplugin/python_flake8.vim @@ -61,10 +61,16 @@ if !exists("*Flake8()") let s:flake8_max_complexity="" endif + if exists("g:flake8_quickfix_location") + let s:flake8_quickfix_location=g:flake8_quickfix_location + else + let s:flake8_quickfix_location="belowright" + endif + " perform the grep itself let &grepformat="%f:%l:%c: %m\,%f:%l: %m" let &grepprg=s:flake8_cmd.s:flake8_builtins_opt.s:flake8_ignores.s:flake8_max_line_length.s:flake8_max_complexity - silent! grep! % + silent! grep! "%" " restore grep settings let &grepformat=l:old_gfm @@ -73,7 +79,7 @@ if !exists("*Flake8()") " open cwindow let has_results=getqflist() != [] if has_results - execute 'belowright copen' + execute s:flake8_quickfix_location." copen" setlocal wrap nnoremap c :cclose nnoremap q :cclose