Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What value should MANPAGER take #2

Open
Tokubara opened this issue Dec 29, 2021 · 1 comment
Open

What value should MANPAGER take #2

Tokubara opened this issue Dec 29, 2021 · 1 comment

Comments

@Tokubara
Copy link

At first, I set MANPAGER to less. The plugin only show the first page. Then I set MANPAGER to cat, the term terminates. Neither one does work. So, What value should the environment variable MANPAGER take?

@paretje paretje closed this as completed in 7fe6b3b Dec 7, 2022
@paretje paretje reopened this Dec 7, 2022
@paretje
Copy link
Owner

paretje commented Dec 7, 2022

Sorry, I forgot about this one. It works with less, but it should also work with e.g. more. The window will close when the process exits, which is why cat doesn't work. I updated the plugin to use less, with -+F to prevent short man pages to be closed immediately in case -F is set in LESS. The plugin should go into insert mode whenever focused, and you should be able to use the pager like you would outside of neovim, while you can open other man pages from normal mode. You can't scroll the man page in normal mode.

As noted in the README, this is basically a hack to work around some limitations of the syntax highlighting of man pages using vim-man, and I also use it as a basis to open e.g. pydoc, cppman or ansible-doc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants