I searched through Vim's source repository (which includes help doc too) for any references to pager but couldn't find so asking here- Is there a way to see if vim is running as a pager? I'd like to run certain commnands automatically when that happens.
EDIT: By pager, I mean vim reading from stdin when piped as vim -
. I use a plugin called AnsiEsc
mentioned in another vim related question so would like to load that automatically. I would also like to remap some keybindings.