]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(man): improve :Man completion for man-db
authorDavid Mandelberg <david@mandelberg.org>
Mon, 10 Mar 2025 20:26:50 +0000 (21:26 +0100)
committerChristian Brabandt <cb@256bit.org>
Mon, 10 Mar 2025 20:26:50 +0000 (21:26 +0100)
commitc2623824a7f38ef9cefc9d9ca016b897000a8db4
treeb635e9ea08ebce88c1b59ce2f203cfa46ae31454
parent969e11a18b145241dc0ab39fc1be7ed814655dfc
runtime(man): improve :Man completion for man-db

On man-db systems, complete with actual man sections and pages, instead
of shell commands.

I tried to come up with a portable solution for multiple man
implementations in https://github.com/vim/vim/discussions/16794 but I
think the differences between implementations were too large to do that
without overly complicated code. So instead, I implemented it for man-db
(which I think is common on Linux) and hopefully left it easier for
other people to implement it on other systems in the future if they want
to.

closes: #16843

Signed-off-by: David Mandelberg <david@mandelberg.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/autoload/dist/man.vim
runtime/doc/filetype.txt
runtime/doc/tags
runtime/ftplugin/man.vim