I use vim
as a pager with vimpager
and a script to change between pager and full vim
mode.
But pressing i
, a
, etc change the mode while paging, which I want to prevent from happening.
I tried map i <Nop>
and it works, but then I cannot restore the original behaviour, when switching to full vim
mode.
map
commands afterHideCursorInLessMode()
andRestoreCursor()
in~/.vimrc
, which should work the same as the alternativerc
files you mention.