rkitover / vimpager

Use Vim as PAGER

Home Page:http://www.vim.org/scripts/script.php?script_id=1723

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disable specific mapping

gkotian opened this issue · comments

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? 😄)

Bump.

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 :)

I'll close this issue. Thanks for this project. It has worked well for me for several years, but I've decided to move to bat now.