dcreager.net

Viewing man pages using neovim

2025-04-10

I get frustrated when I accidentally pull up neovim's man page viewer when I press Shift-K on something. But TIL that you can do it on purpose by using neovim as your MANPAGER:

Neovim man filetype

lobste.rs suggestion from jbranchaud

It includes a local mapping so that a bare q closes the viewer, just like if you were using a default pager like less. And Shift-K works to follow links within the man pages. Good stuff!