Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.mdown
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ To customize whether the quickfix window opens, set `g:flake8_show_quickfix`:
let g:flake8_show_quickfix=0 " don't show
let g:flake8_show_quickfix=1 " show (default)

To customize whether a warning bell is sounded on errors, set `g:flake8_bell`:

let g:flake8_bell=0 " no bell
let g:flake8_bell=1 " bell (default)

To customize whether the show signs in the gutter, set `g:flake8_show_in_gutter`:

let g:flake8_show_in_gutter=0 " don't show (default)
Expand Down
5 changes: 5 additions & 0 deletions autoload/flake8.vim
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ function! s:Setup() " {{{
call s:DeclareOption('flake8_quickfix_location', '', '"belowright"')
call s:DeclareOption('flake8_quickfix_height', '', 5)
call s:DeclareOption('flake8_show_quickfix', '', 1)
call s:DeclareOption('flake8_bell', '', 1)
" markers to show
call s:DeclareOption('flake8_show_in_gutter', '', 0)
call s:DeclareOption('flake8_show_in_file', '', 0)
Expand Down Expand Up @@ -161,6 +162,10 @@ function! s:Flake8() " {{{
nnoremap <buffer> <silent> c :cclose<CR>
nnoremap <buffer> <silent> q :cclose<CR>
endif
" bell
if !s:flake8_bell == 0
normal "\<Esc>"
endif
endif

set nolazyredraw
Expand Down