Make nvim the "man" pager for table-of-contents
dblume

dblume commited on 2025-08-12 14:05:50
Showing 1 changed files, with 1 additions and 0 deletions.


With nvim as the pager, you can "gO" to go the the
filetype-specific, navigable "outline" of the current buffer.
... ...
@@ -130,6 +130,7 @@ if command -v nvim &> /dev/null; then
130 130
     alias vim='nvim'
131 131
     alias vim-='nvim +"setl buftype=nofile" -'
132 132
     alias vimdiff='nvim -d'
133
+    export MANPAGER="nvim +Man!"
133 134
 else
134 135
     alias vim-='vim +"setl buftype=nofile" -'
135 136
 fi
136 137