The answer was in the vimpager initialization. Before it was stated that initialization of the plugin should be done by adding these lines in the .vimrc
:
let g:vimpager = {}
let g:less = {}
let g:vimpager.passthrough = 0
But and the check for the g:vimpager.enabled
occured later in the VIMRC file. Obviously the value of g:vimpager
was reset by this point, rendering the check useless.
So the right way would be to write :
if !exists('g:vimpager')
let g:vimpager = {}
endif
if !exists('g:less')
let g:less = {}
endif
let g:vimpager.passthrough = 0
...
if !exists('g:vimpager.enabled')
Plug 'dense-analysis/ale'
endif
Note the disabling the inclusion of the Ale plugin completely - it speeds up the loading considerably, compared to just setting let g:ale_enabled = 0
.
The documentation for vimpager plugin was fixed in e887ecc commit.
set nospell
part works? Maybe it is not executed in the right order in your config. To make sure, it should be placed in a file in the.vim/after/
directory, e.g. inside.vim/after/plugin/vimpager.vim
or also maybe in.vimpagerrc
.set nospell
doesn't work either. I added it here as an additional check if it is called.g:vimpager.enabled
isn't set yet. You can try wrapping this into a VimEnter autocommand, but you most likely need an explicit command to disable Ale, since it will be already loaded at this time.let g:ale_enabled = 0
in~/.vimpagerrc
or~/.vim/vimpagerrc
instead?