When I type :hi to see all the highlight groups, I only see as much as can fill the screen. How do I scroll through them?

:hi[ghlight]        List all the current highlight groups that have
                    attributes set.

To show more results, I have to re-run the command to decrease the text size, but I can’t scroll up:

  • Not sure I understand what you're looking for. You can't scroll unless there's more than a page worth of output. If there was enough to scroll through it would say "More" at which point you could press ? to see available commands.
    – B Layer
    Aug 27, 2021 at 18:16
  • 1
    Weird. Sounds like the pager isn't working for you. What do you get for :set more? Also, to rule out anything in your vimrc try :hi after launching Vim with -u DEFAULTS. (This is all to check Vim settings. It could also be something amiss in your terminal settings.)
    – B Layer
    Aug 27, 2021 at 20:01
  • 1
    Wecome to Vi and Vim! One option is to dump the output of the command into a (scratch) buffer. You can do that with a command such as :put =execute('hi'), which executes :hi but captures its output (that's the execute() part) and dumps it into the current buffer (:put with the expression-register =.)
    – filbranden
    Aug 27, 2021 at 20:36
  • 1
    Thanks @filbranden, this seems to hide the colors though. Aug 27, 2021 at 21:07
  • 1
    Are other commands scrollable? I’m inclined to disagree this is off-topic because vimr has enough of vim in it to qualify.
    – D. Ben Knoble
    Aug 28, 2021 at 11:48

1 Answer 1


You can use j k or arrow keys or enter; it's the same as the less command:

SPACE/d/j: screen/page/line down, b/u/k: up, q: quit

If you cannot move with any of these options, it's perhaps a bug in your vim or config.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.