diff --git a/doc/ale.txt b/doc/ale.txt index e32df32e..369361c2 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -108,9 +108,9 @@ g:ale_lint_on_enter *g:ale_lint_on_enter* Type: |Number| Default: `1` -When this option is set to `1`, the |BufEnter| event will be used to apply -linters when buffers are first opened. If this is not desired, this variable -can be set to `0` in your vimrc file to disable this behaviour. +When this option is set to `1`, the |BufEnter| and |BufRead| events will be +used to apply linters when buffers are first opened. If this is not desired, +this variable can be set to `0` in your vimrc file to disable this behaviour. g:ale_lint_on_save *g:ale_lint_on_save* diff --git a/plugin/ale/zmain.vim b/plugin/ale/zmain.vim index e41ff7e6..83bb8109 100644 --- a/plugin/ale/zmain.vim +++ b/plugin/ale/zmain.vim @@ -355,7 +355,7 @@ endif if g:ale_lint_on_enter augroup ALERunOnEnterGroup autocmd! - autocmd BufEnter * call ALELint(20) + autocmd BufEnter,BufRead * call ALELint(0) augroup END endif