From: Tasos Bakogiannis Date: Sun, 14 Dec 2014 13:04:47 +0000 (+0200) Subject: add option for customizing quickfix window height X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/ecbbbf40ce46b46e5f6d7edd661ccd1f6bc7f77a?ds=inline;hp=--cc add option for customizing quickfix window height --- ecbbbf40ce46b46e5f6d7edd661ccd1f6bc7f77a 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