From: Vincent Driessen Date: Mon, 15 Dec 2014 08:26:41 +0000 (+0100) Subject: Merge branch 'master' into tabac-master X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/6cc5173536139551c5aa5cb3a4a35678f04caf1f?hp=3d3c10fc8e272b35e3b06319afe90e186be2aa66 Merge branch 'master' into tabac-master --- diff --git a/README.mdown b/README.mdown index e1872e5..0ca6a65 100644 --- a/README.mdown +++ b/README.mdown @@ -51,6 +51,10 @@ To customize the location of quick fix window, set `g:flake8_quickfix_location`: let g:flake8_quickfix_location="topleft" +To customize the height of quick fix window, set `g:flake8_quickfix_height`: + + let g:flake8_quickfix_height=7 + To customize whether the quickfix window opens, set `g:flake8_show_quickfix`: let g:flake8_show_quickfix=0 " don't show diff --git a/autoload/flake8.vim b/autoload/flake8.vim index a958ec5..0ca4aff 100644 --- a/autoload/flake8.vim +++ b/autoload/flake8.vim @@ -73,6 +73,7 @@ function! s:Setup() " {{{ call s:DeclareOption('flake8_cmd', '', '"flake8"') " quickfix call s:DeclareOption('flake8_quickfix_location', '', '"belowright"') + call s:DeclareOption('flake8_quickfix_height', '', 5) call s:DeclareOption('flake8_show_quickfix', '', 1) " markers to show call s:DeclareOption('flake8_show_in_gutter', '', 0) @@ -155,7 +156,7 @@ function! s:Flake8() " {{{ " quickfix if !s:flake8_show_quickfix == 0 " open cwindow - execute s:flake8_quickfix_location." copen" + execute s:flake8_quickfix_location." copen".s:flake8_quickfix_height setlocal wrap nnoremap c :cclose nnoremap q :cclose