From: Mikhail Medvedev Date: Wed, 7 May 2014 22:58:48 +0000 (-0400) Subject: Added option to specify location of the quickfix window X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/08f1f2b1f5073ea7b9e4e914eb1c34279af4ea24?hp=947f660844168bf154049642f8baa0f74bad2297 Added option to specify location of the quickfix window E.g. use "topleft" to put the quickfix on top --- diff --git a/ftplugin/python_flake8.vim b/ftplugin/python_flake8.vim index 38bb6f7..b26d9a1 100644 --- a/ftplugin/python_flake8.vim +++ b/ftplugin/python_flake8.vim @@ -61,6 +61,12 @@ 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 @@ -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