https://github.com/begriffs/posix-man
Man pages for POSIX (sections 0,1,3; issues 6 and 7)
https://github.com/begriffs/posix-man
Last synced: about 1 year ago
JSON representation
Man pages for POSIX (sections 0,1,3; issues 6 and 7)
- Host: GitHub
- URL: https://github.com/begriffs/posix-man
- Owner: begriffs
- Created: 2020-10-23T03:22:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-23T03:23:20.000Z (over 5 years ago)
- Last Synced: 2025-01-10T17:50:13.952Z (about 1 year ago)
- Language: Roff
- Size: 3.48 MB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Man pages for POSIX
These files allow you to easily consult the POSIX documentation for man
sections 1 and 3. It also contains a "section 0" for header files.
It contains Issue 6 (POSIX.1-2001) and Issue 7 (POSIX.1-2008).
### Accessing from vim
Pressing `K` in vim brings up the man page for the word under the cursor. In
fact, `nK` bring up section `n`. Sadly `0K` does not work, so section 0 is
inaccessible through Vim.
The man pages in the upstream Debian package use sections 0P, 1P, and 3P,
which would be incompatible with vim, so I changed them to plain numbers.
To point Vim to the POSIX man pages, do this:
```bash
git clone https://github.com/begriffs/posix-man
```
Then in your vim configuration (like an ftplugin for c and sh files):
```viml
setlocal keywordprg=man\ -M\ /path/to/posix-man/issue7
```
The irony is not lost on me that -M or MANPATH is not supported by POSIX's own
man interface.
### Alternatives
June Bug's [exman](https://git.causal.agency/exman/about/exman.1) program
allows you to consult multiple sets of man pages on the same system. This
didn't exactly fit the bill for me because I wanted to remove the P from
sections, and also wanted to strip the Linux preamble from the POSIX pages.