Sometimes I need to look up certain words through all the manual pages. I am aware of apropos
, but if I understand its manual right, it restricts search to the descriptions only.
Each manual page has a short description available within it. apropos searches the descriptions for instances of keyword.
For example, if I look up a word like 'viminfo', I get no results at all...
$ apropos viminfo
viminfo: nothing appropriate.
... although this word exists in a later section of the manual of Vim (which is installed on my system).
-i {viminfo} When using the viminfo file is enabled, this option sets the filename to use, instead of the default "~/.vim‐ info". This can also be used to skip the use of the .viminfo file, by giving the name "NONE".
So how can I look up a word through every section of every manual?
:!man -K info
in gvim, will it let me edit the manual pages or will it merely display the manual pages? In VIM normal mode, I accidentally hitK
when my cursor was at the wordinfo
and I was afaird that I may have messed up some of the manual pages (and hence this question) :-( – weirdo Nov 13 '20 at 01:20