In vim, I like to use two consecutive spaces in normal mode to save the file, using this mapping: nnoremap <SPACE><SPACE> :w<CR>
But this interferes with my scrolling behaviour when using vimpager (in a pager, I like to use space to scroll down). Right now, when I try to use space to scroll down, vimpager complains with E382: Cannot write, 'buftype' option is set.
Is there any way I can disable the Space-Space mapping in vimpager, and use the spacebar to scroll down?
(IOW, is there any way I can eat my cake and have it too? :smile:)
I still haven't managed to find a workaround for my problem, and would appreciate any pointers. Even a "no, this is simply not possible to do." would be helpful :)
In vim, I like to use two consecutive spaces in normal mode to save the file, using this mapping:
nnoremap <SPACE><SPACE> :w<CR>
But this interferes with my scrolling behaviour when using vimpager (in a pager, I like to use space to scroll down). Right now, when I try to use space to scroll down, vimpager complains with
E382: Cannot write, 'buftype' option is set
.Is there any way I can disable the
Space-Space
mapping in vimpager, and use the spacebar to scroll down? (IOW, is there any way I can eat my cake and have it too? :smile:)