From ecbbbf40ce46b46e5f6d7edd661ccd1f6bc7f77a Mon Sep 17 00:00:00 2001 From: Tasos Bakogiannis Date: Sun, 14 Dec 2014 15:04:47 +0200 Subject: [PATCH] add option for customizing quickfix window height --- README.mdown | 4 ++++ autoload/flake8.vim | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.mdown b/README.mdown index 34e2872..df8aa83 100644 --- a/README.mdown +++ b/README.mdown @@ -63,6 +63,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 de9633e..5c54ad1 100644 --- a/autoload/flake8.vim +++ b/autoload/flake8.vim @@ -53,6 +53,7 @@ function! s:Setup() " {{{ call s:DeclareOption('flake8_max_complexity', ' --max-complexity=', '') " 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) @@ -135,7 +136,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 -- 2.39.2