Using the and directional arrow keys to to scroll up and down the page in the GNU info pages causes the info page viewer to unexpectedly jump to another node, this is really disorienting.
How can I scroll down through the page and just have the info viewer/pager stop when it gets to the top or the bottom, and then require a separate command to jump to a different node?

  • 2
    Use pinfo to browse info files. If you're comfortable with Vim and Vim plugins you can also install ref and ref-info and actually have a sane info browser. – Satō Katsura Jun 29 '16 at 8:46
  • @SatoKatsura thanks, yes I installed and tried pinfo I like it but it doesn't work for pinfo info which is one of the main index pages which I would use to drill down into more specific pages. pinfo info just loads loads man info. Also I couldn't work out how to jump to the next search match in pinfo – the_velour_fog Jun 29 '16 at 8:49
  • From a quick look, I believe you want pinfo info-stnd rather than pinfo info. Other than that however, well, I'm just a fellow info hater, so don't expect me to try too hard to defend pinfo. :) The ref-info thing is pretty decent though. – Satō Katsura Jun 29 '16 at 8:53
  • @SatoKatsura yes I think info pages are really made by and intended for emacs users. it looks like the ref-info is vim syntax definitions for info pages. So is the idea you open info pages in vim - and ref-info plugin gives you ability to navigate? – the_velour_fog Jun 29 '16 at 9:01
  • 2
    No. You first install ref, which is a hypertext browser framework. ref comes with browsers for various sources (man pages, perldoc, pydoc, etc.), but not for info. ref-info is a plugin for ref that adds support for info. Then you add let g:ref_info_cmd='info --subnodes -o -' to your vimrc, and browse info pages with :Ref info <page>. You'll probably need to spend some time configuring it. It's a very useful plugin. – Satō Katsura Jun 29 '16 at 9:09

Posting as an answer, as requested.

Just don't use info to browse info pages. There is a standalone info browser named pinfo, and Emacs has, of course, its own Info Mode.

If you're using Vim you can also install the ref and ref-info plugins. ref is essentially a generic hypertext browser. It comes with plugins for a number of sources, such as man pages, perldoc, pydoc, etc., but not for info. ref-info is a plugin for ref that adds capability to browse info pages.

The combination ref+ref-info makes a decent info browser, with the only drawback that it can only search through the page it currently displays. A partial workaround for this problem is to tell the info backend to produce larger chunks before feeding them to ref-info, by adding this line to your vimrc:

let g:ref_info_cmd = 'info --subnodes -o -'

You'd then browse info pages like this:

:Ref info <page>

Of course, you can also use ref with the other sources (:Ref man <page> etc.). Read the manual for more information.

  • thanks for the great explanation. I agree with the let g:ref_info_cmd = 'info --subnodes -o -' idea of bunching everything into a single page. I always use the zsh man pages this way too, i.e. the zsh man pages are broken into about 12 separate man pages, but I always load man zshall for doing regex searches, then once I know where the thing I want is, then load the specific man page e.g. man zshbuiltins – the_velour_fog Jun 29 '16 at 10:21
  • 1
    +1 for "don't use info" – R.. Jun 29 '16 at 16:34

You can use Control-V to scroll-forward-page-only, and the reverse Meta-V or Escape-V for scroll-backward-page-only. These are listed in the h help page, but they are hard to spot.

  • thanks, I could use a half page scroll, like C-d in less, but scrolling an entire page at a time is a bit disorienting. – the_velour_fog Jun 29 '16 at 8:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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