Search code examples
vim

How do I change Vim's internal pager to something else?


Whenever I execute a command like :imap, Vim fires up some sort of (internal?) pager that doesn't support searching through the output. Is there any way to configure Vim to use a different pager?


Solution

  • No, but you can capture the output with the :redir command and then paste it into a buffer to search, filter, or whatever you like. For example,

    :redir @a
    :imap
    :redir END
    :new
    :put a