Comment

Comment by tomxor

Expanding on pjmlp's comment [0] buried in this thread:

    export MANPAGER="nvim +Man!"
Using Vim's built in ft-man-plugin [1] as the default man pager seems to go pretty far towards resolving what the author is complaining about.

Links work, and it respects the indentation when soft wrapping lines. It isn't doing full reflow or regenerating the page, but it maintains legibility while soft wrapping, and messing up indentation is my main annoyance with less... You can improve less by chopping lines -S by default, but then you have horizontal scrolling so neither is great.

[0] In Vim, you can use K to open a man page for the word under the cursor

[1] https://neovim.io/doc/user/filetype.html#ft-man-plugin

parent tomxor 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton